add npm cache to CI

This commit is contained in:
Tomáš Mládek 2021-04-09 20:23:22 +02:00
parent 88dcb89ca7
commit 85e6fc7670

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