]>
Commit | Line | Data |
---|---|---|
1 | image: node:8 | |
2 | ||
3 | stages: | |
4 | - lint | |
5 | - build | |
6 | - deploy | |
7 | ||
8 | cache: | |
9 | key: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA} | |
10 | paths: | |
11 | - node_modules/ | |
12 | ||
13 | before_script: | |
14 | - npm install | |
15 | ||
16 | lint: | |
17 | stage: lint | |
18 | script: | |
19 | - npm run lint | |
20 | ||
21 | build: | |
22 | stage: build | |
23 | script: | |
24 | - npm run build | |
25 | artifacts: | |
26 | paths: | |
27 | - dist | |
28 | ||
29 | pages: | |
30 | stage: deploy | |
31 | script: | |
32 | - mv dist public | |
33 | artifacts: | |
34 | paths: | |
35 | - public | |
36 | only: | |
37 | - develop |