1
Fork 0
mirror of https://github.com/RealOrangeOne/notes.git synced 2024-11-16 21:59:03 +00:00
Can't cache directory outside project

https://docs.gitlab.com/ee/ci/caching/#caching-nodejs-dependencies
This commit is contained in:
Jake Howard 2020-09-30 20:33:41 +01:00
parent 7038472d33
commit 262447cd32
Signed by: jake
GPG key ID: 57AFB45680EDD477

View file

@ -3,13 +3,13 @@ image: "node:lts-slim"
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- /root/.npm
- ./.cache
- .npm
- .cache
pages:
stage: deploy
script:
- npm ci --production
- npm ci --cache .npm --prefer-offline --production
- npm run release
artifacts:
paths: