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).
This commit is contained in:
Robin Malfait 2023-01-16 16:44:01 +01:00
parent d0ecd29886
commit 436a33dafa
No known key found for this signature in database
GPG key ID: 92F53D68B9041AFE

View file

@ -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: