Skip to content

Commit

Permalink
Save nvm cache in CircleCI's cache (ampproject#39564)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg authored Oct 18, 2023
1 parent 7093331 commit a99f19e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,20 @@ commands:
- .git
setup_node_environment:
steps:
- restore_cache:
name: 'Restore nvm Cache'
keys:
- nvm-cache-{{ arch }}-v1-
- node/install:
node-version: 'lts'
- run:
name: 'Create nvm Cache Checksum File'
command: 'node -v > ~/.node-version'
- save_cache:
name: 'Save nvm Cache'
key: nvm-cache-{{ arch }}-v1-{{ checksum "~/.node-version" }}
paths:
- ~/.nvm/.cache
- node/install-packages:
with-cache: false
setup_vm:
Expand Down

0 comments on commit a99f19e

Please sign in to comment.