chore: refine yarn cache config (#11782)
* chore: refine yarn cache config * fix: Circle CI does not support template on paths * chore: manually update yarn cache key * remove debug command
This commit is contained in:
parent
1a65ba76f0
commit
0d444072ba
@ -4,10 +4,12 @@ aliases:
|
||||
- &restore-node-modules-cache
|
||||
keys:
|
||||
- v1-yarn-deps-{{ checksum "yarn.lock" }}
|
||||
- v1-yarn-deps-
|
||||
|
||||
- &restore-yarn-cache
|
||||
keys:
|
||||
- v1-yarn-cache
|
||||
- v1-1-yarn-cache-{{ checksum "yarn.lock" }}
|
||||
- v1-1-yarn-cache-
|
||||
|
||||
- &save-node-modules-cache
|
||||
paths:
|
||||
@ -16,8 +18,8 @@ aliases:
|
||||
|
||||
- &save-yarn-cache
|
||||
paths:
|
||||
- ~/.yarn-cache
|
||||
key: v1-yarn-cache
|
||||
- ~/.cache/yarn
|
||||
key: v1-1-yarn-cache-{{ checksum "yarn.lock" }}
|
||||
|
||||
- &artifact_babel
|
||||
path: ~/babel/packages/babel-standalone/babel.js
|
||||
@ -119,13 +121,13 @@ jobs:
|
||||
cat ~/diff.tap | $(npm bin)/tap-merge | $(npm bin)/tap-mocha-reporter xunit | tee ~/test-results/test262/results.xml
|
||||
<<: *test262_workdir
|
||||
- store_test_results: *artifact_test262_xunit
|
||||
- save_cache: *save-node-modules-cache
|
||||
- save_cache: *save-yarn-cache
|
||||
|
||||
publish-verdaccio:
|
||||
executor: node-executor
|
||||
steps:
|
||||
- checkout
|
||||
- restore_cache: *restore-yarn-cache
|
||||
- restore_cache: *restore-node-modules-cache
|
||||
- run: yarn install
|
||||
- run: ./scripts/integration-tests/publish-local.sh
|
||||
- persist_to_workspace:
|
||||
@ -216,4 +218,3 @@ workflows:
|
||||
- e2e-vue-cli:
|
||||
requires:
|
||||
- publish-verdaccio
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user