puppeteer-jest-starter
puppeteer-jest-starter copied to clipboard
fix CircleCI cache key mismatch
Since the retrieval of cache is 'prefix-matched' (https://circleci.com/docs/2.0/caching/#restoring-cache), currently L16 (v1-dependencies-{{ checksum "package-lock.json" }}
) have no effect.
Another solution might be:
- restore_cache:
keys:
- - v1-dependencies-{{ checksum "package-lock.json" }}
+ - v1-dependencies-{{ .Branch }}-{{ checksum "package-lock.json" }}
+ - v1-dependencies-{{ .Branch }}-
- v1-dependencies-
... but the branch name doesn't seem to be relevant in this case.