From 4b57cd888f16209d3c6f5b3809f24fe7f65b91fb Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Tue, 4 Feb 2020 20:13:03 +0800 Subject: [PATCH] ci: no need to include branch in the cache key --- .circleci/config.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 9c41cc1f55..4c9320bb1b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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 @@ -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