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
|
||||
script:
|
||||
- cd app
|
||||
- npm install --progress=false
|
||||
- npm ci --cache .npm --prefer-offline
|
||||
- npm run build
|
||||
cache:
|
||||
key: ${CI_COMMIT_REF_SLUG}
|
||||
paths:
|
||||
- app/.npm
|
||||
artifacts:
|
||||
paths:
|
||||
- app/dist
|
||||
|
|
Loading…
Reference in a new issue