Skip to content

Commit 4e568da

Browse files
committed
fix: use package.json checksum for generating cache key
1 parent 63bd42a commit 4e568da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

circle.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
- checkout
1616
- restore_cache:
1717
keys:
18-
- npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
19-
- npm-lock-master-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
18+
- npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
19+
- npm-lock-master-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
2020
- npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}
2121
- npm-cache-master-{{ .Environment.CIRCLE_JOB }}
2222
- run:
@@ -29,11 +29,11 @@ jobs:
2929
name: Test
3030
command: npm run test
3131
- save_cache:
32-
key: npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
32+
key: npm-lock-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
3333
paths:
3434
- node_modules
3535
- save_cache:
36-
key: npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package-lock.json" }}
36+
key: npm-cache-{{ .Branch }}-{{ .Environment.CIRCLE_JOB }}-{{ checksum "package.json" }}
3737
paths:
3838
- ~/.npm/_cacache
3939
node-v6:

0 commit comments

Comments
 (0)