From 0d444072ba3f66d4d886308793ead2205ddf7957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Fri, 3 Jul 2020 07:53:25 -0400 Subject: [PATCH] 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 --- .circleci/config.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8258aba333..21ff5b59d1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 -