1 | # Official framework image. Look for the different tagged releases at:
|
2 | # https://hub.docker.com/r/library/node/tags/
|
3 | image: node:10
|
4 |
|
5 |
|
6 | # This folder is cached between builds
|
7 | # http://docs.gitlab.com/ce/ci/yaml/README.html#cache
|
8 | cache:
|
9 | paths:
|
10 | - node_modules/
|
11 |
|
12 | before_script:
|
13 | - npm install
|
14 |
|
15 | stages:
|
16 | - build
|
17 | - publish
|
18 |
|
19 | build:lint:
|
20 | stage: build
|
21 | script:
|
22 | - npm run lint
|
23 |
|
24 | build:test:
|
25 | stage: build
|
26 | script:
|
27 | - npm test
|
28 |
|
29 | publish:
|
30 | stage: publish
|
31 | script:
|
32 | - echo '//registry.npmjs.org/:_authToken='$NPM_TOKEN > ~/.npmrc
|
33 | - npm run build
|
34 | - npm publish |
\ | No newline at end of file |