-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
40 lines (36 loc) · 890 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
28
29
30
31
32
33
34
35
36
37
38
39
40
image: node:lts-alpine3.9
stages:
- pre-release
- build
- release
pre-release:
stage: pre-release
artifacts:
paths:
- version
before_script:
- apk add --no-cache git
- npm i -g @commitlint/cli @commitlint/config-conventional
- commitlint --from=$CI_BUILD_BEFORE_SHA
script:
- npm install @semantic-release/exec
@semantic-release/changelog
@semantic-release/gitlab
@semantic-release/git
- npx semantic-release --dry-run
build:
stage: build
artifacts:
paths:
- version
script:
- echo "Version -> $(cat version)"
release:
stage: release
script:
- apk add --no-cache git
- npm install @semantic-release/exec
@semantic-release/changelog
@semantic-release/gitlab
@semantic-release/git
- npx semantic-release