Skip to content

Commit

Permalink
πŸ— Temporarily pin Node to v18.* and fix nvm cache (#39582)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg authored Oct 26, 2023
1 parent 713596c commit 5e5d0e2
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,19 +94,25 @@ commands:
paths:
- .git
setup_node_environment:
parameters:
node-version:
type: string
default: '18' # TODO(wg-infra): restore this to 'lts' once #39510 is fixed.
steps:
- restore_cache:
name: 'Restore nvm Cache'
keys:
- nvm-cache-{{ arch }}-v1-
- node/install:
node-version: 'lts'
- nvm-cache-{{ arch }}-v2-<< parameters.node-version >>-
- run:
name: 'Create .nvmrc file'
command: echo << parameters.node-version >> > .nvmrc
- node/install
- run:
name: 'Create nvm Cache Checksum File'
command: 'node -v > ~/.node-version'
command: node -v > ~/.node-version
- save_cache:
name: 'Save nvm Cache'
key: nvm-cache-{{ arch }}-v1-{{ checksum "~/.node-version" }}
key: nvm-cache-{{ arch }}-v2-<< parameters.node-version >>-{{ checksum "~/.node-version" }}
paths:
- ~/.nvm/.cache
- node/install-packages:
Expand Down

0 comments on commit 5e5d0e2

Please sign in to comment.