Skip to content

Commit

Permalink
Use branch in CI cache name
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNaif2018 committed Jun 1, 2021
1 parent d8e857e commit 5a5d570
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- v1-dependencies-{{ checksum "package.json" }}
- v2-dependencies-{{ checksum "package.json" }}-{{ .Branch }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- v2-dependencies-

- run: yarn install

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "package.json" }}
key: v2-dependencies-{{ checksum "package.json" }}-{{ .Branch }}

- run: yarn lint
# run tests!
Expand Down

0 comments on commit 5a5d570

Please sign in to comment.