Skip to content

Commit

Permalink
chore: restore cache before installing nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
stefreak committed Nov 7, 2023
1 parent b754b9e commit 7ccb859
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .circleci/continue-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,12 @@ commands:
# See also https://github.com/CircleCI-Public/node-orb/issues/158#issuecomment-1461095390
- run: rm -rf ~/.npm ~/.fnm

- restore_cache:
keys:
# Prefer using the NPM cache for the package-lock hash, but fall back to any other cache too
- npm-v6-<<parameters.context>>-{{ checksum "package-lock.json" }}
- npm-v6-<<parameters.context>>

- run:
name: Install NodeJS
command: |
Expand All @@ -122,12 +128,6 @@ commands:
exit 1
fi
- restore_cache:
keys:
# Prefer using the NPM cache for the package-lock hash, but fall back to any other cache too
- npm-v6-<<parameters.context>>-{{ checksum "package-lock.json" }}
- npm-v6-<<parameters.context>>

- run: npm ci --prefer-offline --cache ~/.npm --no-audit

- save_cache:
Expand Down

0 comments on commit 7ccb859

Please sign in to comment.