Better cache key
@@ -25,7 +25,7 @@ jobs:
# Download and cache dependencies
- restore_cache:
keys:
- - v1-dependencies-{{ checksum "package.json" }}
+ - v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
@@ -36,7 +36,7 @@ jobs:
- save_cache:
paths:
- node_modules
- key: v1-dependencies-{{ checksum "package.json" }}
+ key: v1-dependencies-{{ checksum "yarn.lock" }}
- run:
name: Lint project
@@ -75,7 +75,7 @@ jobs:
- restore_cache:
keys:
- - v1-dependencies-{{ checksum "package.json" }}
+ - v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
@@ -119,7 +119,7 @@ jobs:
- restore_cache:
keys:
- - v1-dependencies-{{ checksum "package.json" }}
+ - v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
