1 | language: node_js
|
2 | node_js:
|
3 | - stable
|
4 |
|
5 | cache: npm
|
6 |
|
7 | install: npm install
|
8 |
|
9 | script:
|
10 | - npm test
|
11 |
|
12 | jobs:
|
13 | include:
|
14 | - stage: npm release
|
15 | if: tag IS present
|
16 | node_js: "8"
|
17 | script: gulp build
|
18 | deploy:
|
19 | provider: npm
|
20 | email: "$NPM_EMAIL"
|
21 | api_key: "$NPM_TOKEN"
|
22 | skip_cleanup: true
|
23 | on:
|
24 | tags: true
|