Skip to content

Commit 45d4969

Browse files
committed
ci: no need to include branch in the cache key
1 parent 4501390 commit 45d4969

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818
- checkout
1919
- restore_cache:
2020
keys:
21-
- v2-vue-cli-{{ .Branch }}-{{ checksum "yarn.lock" }}
21+
- v2-vue-cli-{{ checksum "yarn.lock" }}
2222
- run: yarn --network-timeout 600000
2323
- save_cache:
24-
key: v2-vue-cli-{{ .Branch }}-{{ checksum "yarn.lock" }}
24+
key: v2-vue-cli-{{ checksum "yarn.lock" }}
2525
paths:
2626
- node_modules/
2727
- ~/.cache
@@ -55,11 +55,11 @@ jobs:
5555
- restore_cache:
5656
keys:
5757
# TODO: should use a more accurate cache key
58-
- v2-vue-cli-offline-{{ .Branch }}-{{ checksum "yarn.lock" }}
58+
- v2-vue-cli-offline-{{ checksum "yarn.lock" }}
5959
- run: yarn config set yarn-offline-mirror ~/npm-packages-offline-cache
6060
- run: yarn test -p cli-service-global,eslint,pwa,babel,babel-preset-app,vuex,router
6161
- save_cache:
62-
key: v2-vue-cli-offline-{{ .Branch }}-{{ checksum "yarn.lock" }}
62+
key: v2-vue-cli-offline-{{ checksum "yarn.lock" }}
6363
paths:
6464
- ~/npm-packages-offline-cache
6565

0 commit comments

Comments
 (0)