Skip to content

Commit

Permalink
ci: install latest npm only on Node.js 18
Browse files Browse the repository at this point in the history
  • Loading branch information
ybiquitous committed Feb 8, 2024
1 parent 50a268a commit 4973656
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ jobs:

# TODO: npm@8.4 is broken on Windows. See https://github.com/npm/cli/issues/4341
- name: Workaround for npm installation failure on Node.js 14 and Windows
if: ${{ startsWith(matrix.node-version, '14') && runner.os == 'Windows' }}
if: ${{ matrix.node-version == '14' && runner.os == 'Windows' }}
run: npm install --global npm@8.3

- name: Install latest npm
if: ${{ matrix.node-version == '18' }}
run: npm install --global npm@latest

- name: Install dependencies
Expand Down

0 comments on commit 4973656

Please sign in to comment.