forked from rikhoffbauer/react-abac
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
43 lines (40 loc) · 862 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
stages:
- test
- publish
- pages
test:
stage: test
image: node:10.15.1-alpine
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
artifacts:
paths:
- coverage
except:
- tags
script:
- npm ci
- npm t
publish:
stage: publish
image: node:10.15.1-alpine
only:
- tags
script:
# clean install
- npm ci
# ensure we have access to the npm registry
- echo "_auth=$NPM_AUTH_KEY" >> .npmrc
# publish to npm
- npm publish
pages:
stage: pages
image: node:10.15.1-alpine
script:
- npm ci
- npm run build
- cd example && npm i && cd .. && sh link-to-example.sh && cd example && npm run build && mv build ../public
only:
- master
artifacts:
paths:
- public