Skip to content

Commit 8948426

Browse files
committed
Install newer npm in Node 20 workflows
1 parent 62b0dd9 commit 8948426

7 files changed

Lines changed: 22 additions & 0 deletions

‎.github/workflows/__config-input.yml‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/__packaging-codescanning-config-inputs-js.yml‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/__packaging-config-inputs-js.yml‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/__packaging-config-js.yml‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/__packaging-inputs-js.yml‎

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎.github/workflows/pr-checks.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
node-version: ${{ matrix.node-version }}
4848
cache: "npm"
4949

50+
# Install a new enough version of `npm` to understand `min-release-age`
51+
# that is still compatible with Node 20.
52+
- name: Install newer npm
53+
if: matrix.node-version == 20
54+
run: npm install -g npm@11.19.1
55+
5056
- name: Install dependencies
5157
run: |
5258
# Use the system Bash shell to ensure we can run commands like `npm ci`

‎pr-checks/sync.ts‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,12 @@ const languageSetups: LanguageSetups = {
221221
cache: "npm",
222222
},
223223
},
224+
// Install a new enough version of `npm` to understand `min-release-age`
225+
// that is still compatible with Node 20.
226+
{
227+
name: "Install newer npm",
228+
run: "npm install -g npm@11.19.1",
229+
},
224230
{
225231
name: "Install dependencies",
226232
run: "npm ci",

0 commit comments

Comments
 (0)