Skip to content

Commit

Permalink
chore: easy cache bust of npm modules in CI (#1261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeyyy authored Nov 28, 2018
1 parent 35ea55e commit c02a5a2
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 @@ -8,8 +8,8 @@ defaults: &defaults
restore_dependency_cache: &restore_dependency_cache
restore_cache:
keys:
- v1-npm-cache-{{ checksum "package.json" }}
- v1-npm-cache-
- v{{ .Environment.CACHE_VERSION }}-npm-cache-{{ checksum "package.json" }}
- v{{ .Environment.CACHE_VERSION }}-npm-cache-

set_npm_auth: &set_npm_auth
run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH
Expand All @@ -24,7 +24,7 @@ jobs:
- <<: *restore_dependency_cache
- run: npm install
- save_cache:
key: v1-npm-cache-{{ checksum "package.json" }}
key: v{{ .Environment.CACHE_VERSION }}-npm-cache-{{ checksum "package.json" }}
paths:
- node_modules

Expand Down

0 comments on commit c02a5a2

Please sign in to comment.