-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): adapt workflow to use supported npm versions (#5277)
- Loading branch information
1 parent
84cce75
commit 8ab52d5
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,16 @@ jobs: | |
node-version: ${{ matrix.node_version }} | ||
|
||
- run: npm install -g npm@latest | ||
if: ${{ matrix.node_version == '18' || matrix.node_version == '20' || matrix.node_version == '22' }} | ||
if: ${{ matrix.node_version == '20' || matrix.node_version == '22' }} | ||
|
||
# [email protected] drops support for Node.js v14 and v16 | ||
- run: npm install -g npm@"<10.0.0" | ||
if: ${{ matrix.node_version == '14' || matrix.node_version == '16' }} | ||
|
||
# [email protected] drops support for Node.js v18 | ||
- run: npm install -g npm@"<11.0.0" | ||
if: ${{ matrix.node_version == '18'}} | ||
|
||
- name: Bootstrap | ||
run: npm ci | ||
|
||
|
@@ -65,7 +69,7 @@ jobs: | |
cache: 'npm' | ||
cache-dependency-path: | | ||
package-lock.json | ||
node-version: '18' | ||
node-version: '20' | ||
|
||
- run: npm install -g npm@latest | ||
|
||
|