1 | image: node:9
|
2 |
|
3 | before_script:
|
4 | - npm install grunt typescript -g
|
5 | - npm install
|
6 |
|
7 | cache:
|
8 | paths:
|
9 | - node_modules/
|
10 |
|
11 | test:
|
12 | script:
|
13 | - grunt default
|
14 |
|
15 | publish:
|
16 | stage: deploy
|
17 | only:
|
18 | - tags
|
19 | - triggers
|
20 | script:
|
21 | - grunt default
|
22 | - echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}'>.npmrc
|
23 | - npm publish --access public |
\ | No newline at end of file |