forked from Paciolan/remote-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
27 lines (22 loc) · 887 Bytes
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
include:
- project: development/tools/gitlab-ci-templates
ref: master
file: /nodejs/all-16.yml
variables:
GITHUB_URL: [email protected]:Paciolan/remote-component.git
stages:
- build
- test
- publish
Build:
# https://gitlabdev.paciolan.info/development/tools/gitlab-ci-templates/blob/master/nodejs/build.yml
extends: .nodejs_build
Test:
# https://gitlabdev.paciolan.info/development/tools/gitlab-ci-templates/blob/master/nodejs/lint_test_coverage.yml
extends: .nodejs_lint_test_coverage
Publish:
# https://gitlabdev.paciolan.info/development/tools/gitlab-ci-templates/blob/master/nodejs/publish.yml
extends: .nodejs_publish_semantic_release
script:
- node -e "require('fs').writeFileSync('./package.json', JSON.stringify(Object.assign(require('./package.json'), {repository:{type:'git',url:'$GITHUB_URL'}}), null, 2), 'utf8')"
- semantic-release