UNPKG

575 BYAMLView Raw
1# Official framework image. Look for the different tagged releases at:
2# https://hub.docker.com/r/library/node/tags/
3image: node:10
4
5
6# This folder is cached between builds
7# http://docs.gitlab.com/ce/ci/yaml/README.html#cache
8cache:
9 paths:
10 - node_modules/
11
12before_script:
13 - npm install
14
15stages:
16 - build
17 - publish
18
19build:lint:
20 stage: build
21 script:
22 - npm run lint
23
24build:test:
25 stage: build
26 script:
27 - npm test
28
29publish:
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