Builds for
1 pipeline
failed
Add new file
Showing
1 changed file
with
33 additions
and
0 deletions
.gitlab-ci.yml
0 → 100644
1 | +language : node_js | ||
2 | +node_js: | ||
3 | + - "10" | ||
4 | + | ||
5 | +branches: | ||
6 | + only: | ||
7 | + - master | ||
8 | + | ||
9 | +install: | ||
10 | +- npm install | ||
11 | + | ||
12 | +os: | ||
13 | + - linux | ||
14 | + | ||
15 | +stages: | ||
16 | + - name: deploy | ||
17 | + | ||
18 | +jobs: | ||
19 | + include: | ||
20 | + - stage: deploy | ||
21 | + script: | ||
22 | + - echo "NPM Deploying Started ..." | ||
23 | + - npm version | ||
24 | + - npm run build | ||
25 | + - echo "NPM Building Finished." | ||
26 | + | ||
27 | + deploy: | ||
28 | + provider: npm | ||
29 | + email: chenfengjw@hotmail.com | ||
30 | + api_key: "$NPM_TOKEN" | ||
31 | + skip_cleanup: true | ||
32 | + on: | ||
33 | + all_branches: true |
-
Please register or login to post a comment