add npm cache to CI
This commit is contained in:
parent
88dcb89ca7
commit
85e6fc7670
1 changed files with 5 additions and 1 deletions
|
@ -7,8 +7,12 @@ build site:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- cd app
|
- cd app
|
||||||
- npm install --progress=false
|
- npm ci --cache .npm --prefer-offline
|
||||||
- npm run build
|
- npm run build
|
||||||
|
cache:
|
||||||
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
|
paths:
|
||||||
|
- app/.npm
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- app/dist
|
- app/dist
|
||||||
|
|
Loading…
Reference in a new issue