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:
parent
30c6b13eec
commit
e55fed9d49
5
.github/workflows/ci.yml
vendored
5
.github/workflows/ci.yml
vendored
@ -255,6 +255,11 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node }}
|
node-version: ${{ matrix.node }}
|
||||||
- name: Set up ${{ matrix.pkg_manager }}
|
- 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
|
run: npm install -g ${{ matrix.pkg_manager }}@latest
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: ${{ matrix.pkg_manager }} install
|
run: ${{ matrix.pkg_manager }} install
|
||||||
|
Loading…
Reference in New Issue
Block a user