From da707a8841efd06b1c008db28efd3b3ee89fc9bb Mon Sep 17 00:00:00 2001 From: jeddy3 Date: Mon, 7 Feb 2022 16:37:40 +0000 Subject: [PATCH 1/2] Pin NPM --- .github/workflows/nodejs.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 015e0a2..9c37967 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -25,7 +25,9 @@ jobs: cache: npm - name: Install latest npm - run: npm install --global npm@latest + run: npm install --global npm@8.3 + # TODO: npm@8.4 is broken on Windows. See https://github.com/npm/cli/issues/4341 + # run: npm install --global npm@latest - name: Install dependencies run: npm ci From 8ff4f95357aa8edb4b36ec549d84611a9a215bd7 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Tue, 8 Feb 2022 08:29:11 +0900 Subject: [PATCH 2/2] Pin npm@8.3 again --- .github/workflows/nodejs.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9c37967..0f43153 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -18,7 +18,7 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Use Node.js ${{ matrix.node }} + - name: Use Node.js LTS uses: actions/setup-node@v2 with: node-version: 'lts/*' @@ -56,7 +56,9 @@ jobs: cache: npm - name: Install latest npm - run: npm install --global npm@latest + run: npm install --global npm@8.3 + # TODO: npm@8.4 is broken on Windows. See https://github.com/npm/cli/issues/4341 + # run: npm install --global npm@latest - name: Install dependencies run: npm ci