forked from effector/effector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
54 lines (51 loc) · 1.06 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
image: node:11
# cache:
# paths:
# - node_modules/
stages:
- test
- deploy
test_all:
stage: test
script:
- yarn
- yarn test
npm_latest:
stage: deploy
script:
- echo "publish npm latest"
- yarn
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- node tools/build publish latest
environment:
name: npm
url: https://www.npmjs.com/package/effector
# when: manual
only:
- master
npm_next:
stage: deploy
script:
- echo "publish npm next"
- yarn
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- node tools/build publish next
environment:
name: npm
url: https://www.npmjs.com/package/effector
when: manual
only:
- master
npm_canary:
stage: deploy
script:
- yarn
- npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
- yarn build
- VERSION_HASH=${CI_COMMIT_SHA:0:8} node tools/versionHash
- cd npm/effector && npm publish
environment:
name: npm_canary
url: https://www.npmjs.com/package/@effector/canary
only:
- master