]>
Commit | Line | Data |
---|---|---|
8f039ab3 RBR |
1 | image: node:8 |
2 | ||
3 | stages: | |
4 | - lint | |
5 | - build | |
2bb8e347 RBR |
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 | |
8f039ab3 RBR |
15 | |
16 | lint: | |
17 | stage: lint | |
18 | script: | |
8f039ab3 RBR |
19 | - npm run lint |
20 | ||
21 | build: | |
22 | stage: build | |
23 | script: | |
8f039ab3 | 24 | - npm run build |
2bb8e347 RBR |
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 |