Skip to content

Commit

Permalink
share cache only between node versions
Browse files Browse the repository at this point in the history
  • Loading branch information
JaneJeon committed May 27, 2023
1 parent 6244054 commit b158aaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ jobs:
- &restore-cache
restore_cache:
keys:
- &cache-key node-deps-{{ arch }}-{{ checksum "package.json" }}
# Caching node_modules means we can't share it across node versions
- &cache-key node-deps-{{ arch }}-<< parameters.node-version >>-{{ checksum "package.json" }}
- &install
run: npm install # no npm ci, because no package-lock.json, because this is a lbirary
- &save-cache
Expand Down

0 comments on commit b158aaa

Please sign in to comment.