Skip to content

Commit

Permalink
chore: refine yarn cache config (#11782)
Browse files Browse the repository at this point in the history
* chore: refine yarn cache config

* fix: Circle CI does not support template on paths

* chore: manually update yarn cache key

* remove debug command
  • Loading branch information
JLHwung committed Jul 3, 2020
1 parent 1a65ba7 commit 0d44407
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .circleci/config.yml
Expand Up @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -216,4 +218,3 @@ workflows:
- e2e-vue-cli:
requires:
- publish-verdaccio

0 comments on commit 0d44407

Please sign in to comment.