-
Notifications
You must be signed in to change notification settings - Fork 2
/
.gitlab-ci.yml
62 lines (56 loc) · 913 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
image: node:8
before_script:
- echo -e "//registry.npmjs.org/:_authToken=${NPM_TOKEN}\n" > ~/.npmrc
- yarn
- node -v
- npm -v
- yarn -v
- yarn tsc -v
stages:
- check
- test
- build
- deploy
lint:
stage: check
script:
- yarn lint
cache:
key: ${CI_PIPELINE_IID}
paths:
- node_modules/
policy: push
test:
stage: test
script:
- yarn test --coverage --no-cache
cache:
key: ${CI_PIPELINE_IID}
paths:
- node_modules/
policy: pull
coverage: '/All files\s+\|\s+([\d\.]+)/'
build:
stage: build
script:
- yarn build
- yarn build:docs
cache:
key: ${CI_PIPELINE_IID}
paths:
- node_modules/
policy: pull
artifacts:
paths:
- dist/*
deploy tag:
stage: deploy
only:
- tags
cache:
key: ${CI_PIPELINE_IID}
paths:
- node_modules/
policy: pull
script:
- yarn publish --access public --new-version ${CI_COMMIT_TAG}