Skip to content

Commit

Permalink
#227 check also package.json when caching
Browse files Browse the repository at this point in the history
  • Loading branch information
elKei24 committed Feb 6, 2021
1 parent 8ee65cd commit 0ae5a92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,15 +65,15 @@ jobs:
path: ~/project
- restore_cache:
keys:
- v1-node-modules-{{ checksum "package-lock.json" }}
- v1-node-modules-{{ checksum "package.json" }}-{{checksum "package-lock.json" }}
- run:
name: Install node dependencies
command: "[ ! -d node_modules ] && npm ci --loglevel warn --yes || echo package.json and package-lock.json unchanged. Using cache."
- run: npm run-script build
- save_cache:
paths:
- node_modules
key: v1-node-modules-{{ checksum "package-lock.json" }}
key: v1-node-modules-{{ checksum "package.json" }}-{{checksum "package-lock.json" }}
- store_artifacts:
path: build
- persist_to_workspace:
Expand Down

0 comments on commit 0ae5a92

Please sign in to comment.