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