Skip to content

Commit 6d8c718

Browse files
committed
fix: do not install deps if cache found
1 parent 17f7d1d commit 6d8c718

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.circleci/config.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ jobs: # a collection of steps
1414
- restore_cache: # special step to restore the dependency cache
1515
key: dependency-cache-{{ checksum "package-lock.json" }}
1616
- run:
17-
name: Install NPM Dependencies
18-
command: npm i
17+
name: Install NPM Dependencies if no cache
18+
command: |
19+
[ ! -d "/tmp/node_modules" ] && npm ci
1920
- save_cache: # special step to save the dependency cache
2021
key: dependency-cache-{{ checksum "package-lock.json" }}
2122
paths:

0 commit comments

Comments
 (0)