]>
Commit | Line | Data |
---|---|---|
b006b62b BB |
1 | image: node:8 |
2 | ||
3 | stages: | |
4 | - lint | |
5 | - deploy | |
6 | ||
7 | cache: | |
8 | key: ${CI_COMMIT_REF_SLUG}-${CI_COMMIT_SHA} | |
9 | paths: | |
10 | - node_modules/ | |
11 | ||
12 | before_script: | |
13 | - npm install | |
14 | ||
15 | lint: | |
16 | stage: lint | |
17 | script: | |
18 | - npm run lint | |
19 | ||
20 | pages: | |
21 | stage: deploy | |
22 | script: | |
23 | - mv . public | |
24 | artifacts: | |
25 | paths: | |
26 | - public | |
27 | only: | |
28 | - master |