Skip to content

Commit 901191a

Browse files
ci() use cached node_modules dir
1 parent 781d43d commit 901191a

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
- image: circleci/node:12
2727
steps:
2828
- checkout
29-
- run:
30-
name: Install dependencies
31-
command: npm install
29+
- restore_cache:
30+
name: Restore node_modules cache
31+
key: dependency-cache-{{ checksum "package.json" }}
3232
- run:
3333
name: Build (dev)
3434
command: npm run build:dev
@@ -40,9 +40,9 @@ jobs:
4040
- image: circleci/node:12
4141
steps:
4242
- checkout
43-
- run:
44-
name: Install dependencies
45-
command: npm install
43+
- restore_cache:
44+
name: Restore node_modules cache
45+
key: dependency-cache-{{ checksum "package.json" }}
4646
- run:
4747
name: Lint
4848
command: npm run lint

0 commit comments

Comments
 (0)