Skip to content

Commit b158aaa

Browse files
committed
share cache only between node versions
1 parent 6244054 commit b158aaa

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ jobs:
2727
- &restore-cache
2828
restore_cache:
2929
keys:
30-
- &cache-key node-deps-{{ arch }}-{{ checksum "package.json" }}
30+
# Caching node_modules means we can't share it across node versions
31+
- &cache-key node-deps-{{ arch }}-<< parameters.node-version >>-{{ checksum "package.json" }}
3132
- &install
3233
run: npm install # no npm ci, because no package-lock.json, because this is a lbirary
3334
- &save-cache

0 commit comments

Comments
 (0)