Skip to content

Commit

Permalink
fix: better cache invalidation in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
zetlen committed Oct 9, 2018
1 parent b5a1f6f commit b4bdc95
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ common_settings:
- ~/.ssh
- ~/.npm
- /root/.npm
key: 'v3-npm-cache-{{ .Branch }}'
key: 'v3-npm-cache-{{ checksum "package-lock.json" }}'

install_latest_npm: &install_latest_npm
name: Ensure NPM is up to date
Expand Down Expand Up @@ -63,8 +63,7 @@ jobs:
- checkout
- restore_cache:
keys:
- 'v3-npm-cache-{{ .Branch }}'
- v3-npm-cache-
- 'v3-npm-cache-{{ checksum "package-lock.json" }}'
- run: *install_latest_npm
- run: *install_packages
- save_cache: *savecache
Expand Down

0 comments on commit b4bdc95

Please sign in to comment.