Skip to content

Commit

Permalink
fix: do not install deps if cache found
Browse files Browse the repository at this point in the history
  • Loading branch information
ripixel committed Dec 28, 2022
1 parent 17f7d1d commit 6d8c718
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Expand Up @@ -14,8 +14,9 @@ jobs: # a collection of steps
- restore_cache: # special step to restore the dependency cache
key: dependency-cache-{{ checksum "package-lock.json" }}
- run:
name: Install NPM Dependencies
command: npm i
name: Install NPM Dependencies if no cache
command: |
[ ! -d "/tmp/node_modules" ] && npm ci
- save_cache: # special step to save the dependency cache
key: dependency-cache-{{ checksum "package-lock.json" }}
paths:
Expand Down

0 comments on commit 6d8c718

Please sign in to comment.