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: cache:
key: ${CI_COMMIT_REF_SLUG} key: ${CI_COMMIT_REF_SLUG}
paths: paths:
- /root/.npm - .npm
- ./.cache - .cache
pages: pages:
stage: deploy stage: deploy
script: script:
- npm ci --production - npm ci --cache .npm --prefer-offline --production
- npm run release - npm run release
artifacts: artifacts:
paths: paths: