chore: use npm 8.3 on windows with node 14 (#9246)

Workaround for https://github.com/npm/cli/issues/4341#issue-1117047096
This commit is contained in:
Alex Rudenko 2022-11-11 09:34:13 +01:00 committed by GitHub
parent 30c6b13eec
commit e55fed9d49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -255,6 +255,11 @@ jobs:
with:
node-version: ${{ matrix.node }}
- name: Set up ${{ matrix.pkg_manager }}
id: workaround
if: ${{ matrix.node == '14' && matrix.os == 'windows-latest' && matrix.pkg_manager == 'npm' }}
run: npm install -g ${{ matrix.pkg_manager }}@8.3
- name: Set up ${{ matrix.pkg_manager }}
if: ${{ steps.workaround.outcome == 'skipped' }}
run: npm install -g ${{ matrix.pkg_manager }}@latest
- name: Install dependencies
run: ${{ matrix.pkg_manager }} install