add npm cache to CI

master
Tomáš Mládek 2021-04-09 20:23:22 +02:00
parent 88dcb89ca7
commit 85e6fc7670
1 changed files with 5 additions and 1 deletions

View File

@ -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