mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-12-22 04:06:00 +00:00
RTFM
Can't cache directory outside project https://docs.gitlab.com/ee/ci/caching/#caching-nodejs-dependencies
This commit is contained in:
parent
7038472d33
commit
262447cd32
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue