using node 10, this caches dependencies, but after upgrading to node 16.5.0, it fetches the dependencies every time
docker:
- image: circleci/node:10.14.2 // upgrade to circleci/node:16.5.0 or cimg/node:16.5.0
steps:
- checkout
- attach_workspace:
at: ~/project
- restore_cache:
keys:
- v1-0-dependencies-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
- run:
name: Install Dependencies
command: yarn install --network-concurrency 1
- save_cache:
key: v1-0-dependencies-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
paths:
- node_modules
- yarn.lock
- persist_to_workspace:
root: .
paths:
- .