From e55fed9d491fa06a7d82030eee63febeb870570c Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Fri, 11 Nov 2022 09:34:13 +0100 Subject: [PATCH] chore: use npm 8.3 on windows with node 14 (#9246) Workaround for https://github.com/npm/cli/issues/4341#issue-1117047096 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e922fe63..a95a4815 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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