Skip to content

Commit

Permalink
ci: no need to include branch in the cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang authored and mactanxin committed Feb 11, 2020
1 parent 6e8a18f commit 4b57cd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ jobs:
- checkout
- restore_cache:
keys:
- v2-vue-cli-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v2-vue-cli-{{ checksum "yarn.lock" }}
- run: yarn --network-timeout 600000
- save_cache:
key: v2-vue-cli-{{ .Branch }}-{{ checksum "yarn.lock" }}
key: v2-vue-cli-{{ checksum "yarn.lock" }}
paths:
- node_modules/
- ~/.cache
Expand Down Expand Up @@ -55,11 +55,11 @@ jobs:
- restore_cache:
keys:
# TODO: should use a more accurate cache key
- v2-vue-cli-offline-{{ .Branch }}-{{ checksum "yarn.lock" }}
- v2-vue-cli-offline-{{ checksum "yarn.lock" }}
- run: yarn config set yarn-offline-mirror ~/npm-packages-offline-cache
- run: yarn test -p cli-service-global,eslint,pwa,babel,babel-preset-app,vuex,router
- save_cache:
key: v2-vue-cli-offline-{{ .Branch }}-{{ checksum "yarn.lock" }}
key: v2-vue-cli-offline-{{ checksum "yarn.lock" }}
paths:
- ~/npm-packages-offline-cache

Expand Down

0 comments on commit 4b57cd8

Please sign in to comment.