message: Update CircleCI to skip install on cache hit
diff: @@ -5,32 +5,22 @@ executors:
  docker:
  - image: circleci/node:12-buster
  -aliases:
  - - &node_modules
  - attach_workspace:
  - at: .
  -
  jobs:
  setup:
  executor: node
  steps:
  - checkout
  - restore_cache:
  - name: Restore Yarn cache
  keys:
  - - yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
  - - yarn-{{ .Branch }}-
  - - yarn-main-
  + - module_cache-{{ checksum "yarn.lock" }}
  + - run:
  + name: Check for dependencies
  + command: "([[ -d node_modules ]] && circleci-agent step halt) || exit 0"
  - run:
  name: Install Packages
  command: yarn --frozen-lockfile --non-interactive
  - save_cache:
  - name: Save Yarn cache
  - key: yarn-{{ .Branch }}-{{ checksum "yarn.lock" }}
  - paths:
  - - ~/.cache/yarn
  - - persist_to_workspace:
  - root: .
  + key: module_cache-{{ checksum "yarn.lock" }}
  paths:
  - node_modules
  @@ -38,7 +28,9 @@ jobs:
  executor: node
  steps:
  - checkout
  - - *node_modules
  + - restore_cache:
  + keys:
  + - module_cache-{{ checksum "yarn.lock" }}
  - run:
  name: TypeScript
  command: yarn run check
  @@ -54,7 +46,9 @@ jobs:
  parallelism: 4
  steps:
  - checkout
  - - *node_modules
  + - restore_cache:
  + keys:
  + - module_cache-{{ checksum "yarn.lock" }}
  - run:
  name: Build
  command: yarn run build
  @@ -63,7 +57,9 @@ jobs:
  executor: node
  steps:
  - checkout
  - - *node_modules
  + - restore_cache:
  + keys:
  + - module_cache-{{ checksum "yarn.lock" }}
  - run:
  name: Build Staging Site
  command: |
  @@ -82,7 +78,9 @@ jobs:
  name: Install AWS CLI
  command: sudo apt-get -y -qq install awscli
  - checkout
  - - *node_modules
  + - restore_cache:
  + keys:
  + - module_cache-{{ checksum "yarn.lock" }}
  - run:
  name: Build Production Site
  command: |
  