Skip to content

Commit

Permalink
ci: update cache key used in CircleCI workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Gaëtan Maisse <gaetanmaisse@gmail.com>
  • Loading branch information
gaetanmaisse committed Jan 17, 2021
1 parent 416c21d commit 1b7fed0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,8 @@ jobs:
- restore_cache:
name: Restore Yarn cache
keys:
- build-yarn-cache-v4--{{ checksum "yarn.lock" }}
- build-yarn-cache-v4--
- build-yarn-2-cache-v1--{{ checksum "yarn.lock" }}
- build-yarn-2-cache-v1--
- run:
name: Install dependencies
command: yarn install
Expand All @@ -97,7 +97,7 @@ jobs:
command: yarn bootstrap --core
- save_cache:
name: Save Yarn cache
key: build-yarn-cache-v4--{{ checksum "yarn.lock" }}
key: build-yarn-2-cache-v1--{{ checksum "yarn.lock" }}
paths:
- ~/.yarn/berry/cache
- persist_to_workspace:
Expand All @@ -117,14 +117,14 @@ jobs:
- restore_cache:
name: Restore Yarn cache
keys:
- install-examples-deps-yarn-cache-v4--{{ checksum "yarn.lock" }}
- install-examples-deps-yarn-cache-v4--
- install-examples-deps-yarn-2-cache-v1--{{ checksum "yarn.lock" }}
- install-examples-deps-yarn-2-cache-v1--
- run:
name: Install dependencies
command: yarn install --immutable
- save_cache:
name: Save Yarn cache
key: install-examples-deps-yarn-cache-v4--{{ checksum "yarn.lock" }}
key: install-examples-deps-yarn-2-cache-v1--{{ checksum "yarn.lock" }}
paths:
- ~/.yarn/berry/cache
- persist_to_workspace:
Expand All @@ -145,7 +145,7 @@ jobs:
- restore_cache:
name: Restore cached node_modules
keys:
- install-e2e-deps-node_modules-cache-v1--{{ checksum "yarn.lock" }}
- install-e2e-deps-node_modules-cache-v2--{{ checksum "yarn.lock" }}
- run:
name: Install dependencies if cache wasn't hit
command: "[ ! -d \"node_modules/\" ] && yarn remove '@storybook/*' || echo \"Skipping yarn install\""
Expand Down

0 comments on commit 1b7fed0

Please sign in to comment.