mirror of
https://github.com/RealOrangeOne/notes.git
synced 2024-11-16 21:59:03 +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:
|
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:
|
||||||
|
|
Loading…
Reference in a new issue