Skip to content

Commit

Permalink
ci: add node version to caching key
Browse files Browse the repository at this point in the history
  • Loading branch information
dyladan committed Nov 9, 2019
1 parent 4261cdf commit 6fa8ac5
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 @@ -31,12 +31,12 @@ node_unit_tests: &node_unit_tests
echo "CIRCLE_NODE_VERSION=${CIRCLE_NODE_VERSION}"
- restore_cache:
keys:
- npm-cache-{{ checksum "/tmp/checksums.txt" }}
- npm-cache-{{ .Environment.CIRCLE_NODE_VERSION }}-{{ checksum "/tmp/checksums.txt" }}
- run:
name: Install Dependencies
command: yarn install
- save_cache:
key: npm-cache-{{ checksum "/tmp/checksums.txt" }}
key: npm-cache-{{ .Environment.CIRCLE_NODE_VERSION }}-{{ checksum "/tmp/checksums.txt" }}
paths:
- ./node_modules
- ./yarn.lock
Expand Down

0 comments on commit 6fa8ac5

Please sign in to comment.