-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
46 lines (39 loc) · 739 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
41
42
43
44
45
46
image: node:14
variables:
COVERALLS_SERVICE_NAME: "gitlab-ci"
stages:
- build
- test
- coverage
- release
cache:
paths:
- node_modules/
install_dependencies:
stage: build
script:
- npm i --silent
artifacts:
paths:
- node_modules/
test:
stage: test
script:
- npm run test
coverage:
stage: coverage
only:
- master
before_script:
- npm install -g coveralls
script:
- npm run coverage
- npm run coveralls
release:
stage: release
only:
- master
before_script:
- npm install -g semantic-release debug @semantic-release/commit-analyzer @semantic-release/github @semantic-release/npm @semantic-release/release-notes-generator
script:
- npm run release