Skip to content

Commit 76d431d

Browse files
committed
Add caching to circle config
1 parent fd35a73 commit 76d431d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.circleci/config.yml

+11-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,18 @@ jobs:
55
- image: circleci/node:latest
66
steps:
77
- checkout
8+
- restore_cache:
9+
keys:
10+
- v1-dependencies-{{ checksum "package.json" }}
11+
# fallback to using the latest cache if no exact match is found
12+
- v1-dependencies-
813
- run:
914
name: Install
10-
command: npm install
15+
command: yarn install
16+
- save_cache:
17+
paths:
18+
- node_modules
19+
key: v1-dependencies-{{ checksum "package.json" }}
1120
- run:
1221
name: Check Prettier, ESLint, Flow
13-
command: npm run ci-check
22+
command: yarn ci-check

0 commit comments

Comments
 (0)