Skip to content

Commit de06f89

Browse files
authored
ci: work around npm 11 bug for now (#6640)
1 parent a0ebc2a commit de06f89

File tree

5 files changed

+32
-9
lines changed

5 files changed

+32
-9
lines changed

.github/workflows/benchmark.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
cache: 'npm'
2323
check-latest: true
2424

25+
# Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489
26+
- name: Setup npm version
27+
run: npm install -g npm@10
28+
2529
- name: Install dependencies
2630
run: npm ci
2731

.github/workflows/pre-release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
node-version: '22'
1717
check-latest: true
1818
registry-url: 'https://registry.npmjs.org'
19+
# Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489
20+
- name: Setup npm version
21+
run: npm install -g npm@10
1922
- name: Extract tag, version and package
2023
id: extract
2124
run: |-

.github/workflows/workflow.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ jobs:
2727
with:
2828
node-version: 22
2929
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
30+
# Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489
31+
- name: Setup npm version
32+
run: npm install -g npm@10
33+
if: ${{ !steps.release-check.outputs.IS_RELEASE && matrix.node-version == '22' }}
3034
- name: Install dependencies
3135
run: npm ci
3236
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
@@ -78,6 +82,10 @@ jobs:
7882
node-version: ${{ matrix.node-version }}
7983
cache: 'npm'
8084
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
85+
# Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489
86+
- name: Setup npm version
87+
run: npm install -g npm@10
88+
if: ${{ !steps.release-check.outputs.IS_RELEASE && matrix.node-version == '22' }}
8189
- name: Setup Deno
8290
uses: denoland/setup-deno@v1
8391
with:
@@ -159,10 +167,15 @@ jobs:
159167
node-version: ${{ matrix.node-version }}
160168
cache: 'npm'
161169
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
170+
# Use npm@10 on Node 22+ due to https://github.com/npm/cli/issues/8489
171+
- name: Setup npm version
172+
run: npm install -g npm@10
173+
if: ${{ !steps.release-check.outputs.IS_RELEASE && matrix.node-version == '22' }}
162174
- name: corepack update
163175
# corepack version distributed with Node.js has a problem with new package manager releases,
164176
# so forcing fixed version of corepack here
165177
run: npm i -g corepack --force
178+
if: ${{ !steps.release-check.outputs.IS_RELEASE }}
166179
- name: setup pnpm/yarn
167180
run: corepack enable
168181
if: ${{ !steps.release-check.outputs.IS_RELEASE }}

renovate.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

renovate.json5

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
3+
extends: ['github>netlify/renovate-config:esm'],
4+
automerge: true,
5+
dependencyDashboard: true,
6+
ignorePresets: [':prHourlyLimit2'],
7+
ignorePaths: ['**/fixtures/**', '**/fixtures-esm/**', '**/node_modules/**'],
8+
semanticCommits: 'enabled',
9+
constraints: {
10+
npm: '^10.0.0',
11+
},
12+
}

0 commit comments

Comments
 (0)