-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
71 lines (60 loc) · 1.18 KB
/
.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
.authenticate-to-npmjs:
- &authenticate-to-npmjs |
echo "$NPM_SCOPE:registry=https://$NPM_REGISTRY_HOST/" >> ~/.npmrc
echo "//$NPM_REGISTRY_HOST/:_authToken=$NPM_TOKEN" >> ~/.npmrc
cache:
paths:
- node_modules/
before_script:
- node --version
- npm --version
stages:
- build
- publish
build-8:
stage: build
image: node:8.17.0-alpine
script:
- npm run build
build-9:
stage: build
image: node:9.11.2-alpine
script:
- npm run build
build-10:
stage: build
image: node:10.20.1-alpine
script:
- npm run build
build-11:
stage: build
image: node:11.15.0-alpine
script:
- npm run build
build-12:
stage: build
image: node:12.16.3-alpine
script:
- npm run build
build-13:
stage: build
image: node:13.14.0-alpine
script:
- npm run build
build-14:
stage: build
image: node:14.1.0-alpine
script:
- npm run build
publish:
stage: publish
image: node:14.1.0-alpine
script:
- *authenticate-to-npmjs
- npm install
- npm run make-distribution
- export RM_TMP_TAG=cicd-$(date +%s)
- npm publish --access public --tag $RM_TMP_TAG
- ./tag-nodejs
only:
- /^\d+\.\d+\.\d+(\-[^\.]+\.\d+)?$/