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:
parent
d0ecd29886
commit
436a33dafa
1 changed files with 4 additions and 0 deletions
4
.github/workflows/nodejs.yml
vendored
4
.github/workflows/nodejs.yml
vendored
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue