Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update CircleCI to skip install on cache hit (#980)

authored by

Andy Richardson and committed by
GitHub
e6ac0e37 baa76ae7

+17 -19
+17 -19
.circleci/config.yml
··· 5 5 docker: 6 6 - image: circleci/node:12-buster 7 7 8 - aliases: 9 - - &node_modules 10 - attach_workspace: 11 - at: . 12 - 13 8 jobs: 14 9 setup: 15 10 executor: node 16 11 steps: 17 12 - checkout 18 13 - restore_cache: 19 - name: Restore Yarn cache 20 14 keys: 21 - - yarn-{{ .Branch }}-{{ checksum "yarn.lock" }} 22 - - yarn-{{ .Branch }}- 23 - - yarn-main- 15 + - module_cache-{{ checksum "yarn.lock" }} 16 + - run: 17 + name: Check for dependencies 18 + command: "([[ -d node_modules ]] && circleci-agent step halt) || exit 0" 24 19 - run: 25 20 name: Install Packages 26 21 command: yarn --frozen-lockfile --non-interactive 27 22 - save_cache: 28 - name: Save Yarn cache 29 - key: yarn-{{ .Branch }}-{{ checksum "yarn.lock" }} 30 - paths: 31 - - ~/.cache/yarn 32 - - persist_to_workspace: 33 - root: . 23 + key: module_cache-{{ checksum "yarn.lock" }} 34 24 paths: 35 25 - node_modules 36 26 ··· 38 28 executor: node 39 29 steps: 40 30 - checkout 41 - - *node_modules 31 + - restore_cache: 32 + keys: 33 + - module_cache-{{ checksum "yarn.lock" }} 42 34 - run: 43 35 name: TypeScript 44 36 command: yarn run check ··· 54 46 parallelism: 4 55 47 steps: 56 48 - checkout 57 - - *node_modules 49 + - restore_cache: 50 + keys: 51 + - module_cache-{{ checksum "yarn.lock" }} 58 52 - run: 59 53 name: Build 60 54 command: yarn run build ··· 63 57 executor: node 64 58 steps: 65 59 - checkout 66 - - *node_modules 60 + - restore_cache: 61 + keys: 62 + - module_cache-{{ checksum "yarn.lock" }} 67 63 - run: 68 64 name: Build Staging Site 69 65 command: | ··· 82 78 name: Install AWS CLI 83 79 command: sudo apt-get -y -qq install awscli 84 80 - checkout 85 - - *node_modules 81 + - restore_cache: 82 + keys: 83 + - module_cache-{{ checksum "yarn.lock" }} 86 84 - run: 87 85 name: Build Production Site 88 86 command: |