Skip to content

Commit

Permalink
chore: add ci cache (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
tripodsan committed Mar 15, 2024
1 parent 7eac489 commit 9c13666
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
13 changes: 10 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ commands:
setup:
steps:
- checkout
- restore_cache:
name: Restore node modules cache
keys:
- node-packages-{{ checksum "package-lock.json" }}
- run:
name: Installing Dependencies
command: |
rm ./package-lock.json
npm i
command: npm ci
no_output_timeout: 20m
- save_cache:
name: Save node modules cache
key: node-packages-{{ checksum "package-lock.json" }}
paths:
- node_modules
- run:
name: prepare test git user
command: git config --global user.email "circleci@example.com" && git config --global user.name "CircleCi Build"
Expand Down
11 changes: 9 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 9c13666

Please sign in to comment.