Skip to content

Commit b862ae2

Browse files
committed
ci: cache npm dependencies
1 parent df6c5c1 commit b862ae2

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.circleci/config.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,15 @@ jobs:
1010
- next
1111
steps:
1212
- checkout
13+
- restore_cache:
14+
key: dependency-cache-{{ checksum "package-lock.json" }}
1315
- run:
1416
name: install
15-
command: npm install
17+
command: npm ci
18+
- save_cache:
19+
key: dependency-cache-{{ checksum "package-lock.json" }}
20+
paths:
21+
- $HOME/.npm
1622
- run:
1723
name: test
1824
command: npm run test

0 commit comments

Comments
 (0)