Use yarn.lock to generate cache key in circleci
This commit is contained in:
parent
6bae0be7ed
commit
f13dda0eec
|
@ -14,13 +14,13 @@ jobs:
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
name: Restoring cache - node_modules
|
name: Restoring cache - node_modules
|
||||||
keys:
|
keys:
|
||||||
- node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
|
- node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
|
||||||
- run:
|
- run:
|
||||||
name: Install packages
|
name: Install packages
|
||||||
command: npm install
|
command: npm install
|
||||||
- save_cache:
|
- save_cache:
|
||||||
name: Saving cache - node_modules
|
name: Saving cache - node_modules
|
||||||
key: node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "package-lock.json" }}
|
key: node_modules-{{ arch }}-node12.13.1-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
|
||||||
paths:
|
paths:
|
||||||
- node_modules
|
- node_modules
|
||||||
- run:
|
- run:
|
||||||
|
|
Loading…
Reference in New Issue