From 436a33dafa47aeaaae991caa7c037c3ccb62c744 Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Mon, 16 Jan 2023 16:44:01 +0100 Subject: [PATCH] ensure we use `npm@7` for older versions of Node.js This is important so that we can guarantee that `workspaces` are supported which we depend on right now (just for install purposes). --- .github/workflows/nodejs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3e69e8540..9dd23baf1 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -33,6 +33,10 @@ jobs: node-version: ${{ matrix.node-version }} # cache: 'npm' + - name: Install newer version of npm on older versions of Node.js + if: matrix.node-version < 16 + run: npm install -g npm@7 + - name: Cache node_modules uses: actions/cache@v3 with: