Skip to content

Commit 9e4d0ea

Browse files
serhalpndhoule
authored andcommitted
ci: downgrade to npm@10 when publishing and updating deps
1 parent c0268cb commit 9e4d0ea

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/pre-release-sha.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
cache: npm
2727
registry-url: 'https://registry.npmjs.org'
2828

29+
# Use npm@10 due to https://github.com/npm/cli/issues/8489 and https://github.com/npm/cli/issues/8767
30+
- name: Setup npm version
31+
run: npm install -g npm@10
32+
2933
- name: Install core dependencies
3034
run: npm ci --no-audit
3135

.github/workflows/pre-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ jobs:
2020
cache: npm
2121
registry-url: 'https://registry.npmjs.org'
2222

23+
# Use npm@10 due to https://github.com/npm/cli/issues/8489 and https://github.com/npm/cli/issues/8767
24+
- name: Setup npm version
25+
run: npm install -g npm@10
26+
2327
- name: Install core dependencies
2428
run: npm ci --no-audit
2529

.github/workflows/release-please.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ jobs:
4040
cache: npm
4141
registry-url: 'https://registry.npmjs.org'
4242

43+
# Use npm@10 due to https://github.com/npm/cli/issues/8489 and https://github.com/npm/cli/issues/8767
44+
- name: Setup npm version
45+
run: npm install -g npm@10
46+
4347
# Used by E2E tests
4448
- uses: pnpm/action-setup@v4
4549
with:

renovate.json renamed to renovate.json5

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
"ignorePresets": [":prHourlyLimit2"],
55
"semanticCommits": "enabled",
66
"dependencyDashboard": true,
7+
"constraints": {
8+
// Use npm@10 due to https://github.com/npm/cli/issues/8489 and https://github.com/npm/cli/issues/8767
9+
"npm": '^10.0.0',
10+
},
711
"postUpdateOptions": ["npmDedupe"],
812
"packageRules": [
913
{

0 commit comments

Comments
 (0)