Skip to content

Commit 0186fea

Browse files
cs-rajclaude
andcommitted
fix(ci): harden release workflows — Node 24, permissions, registry-url
- Add `permissions: contents: read / id-token: write` to both release jobs; id-token:write is required for npm provenance (SLSA attestation) - Upgrade node-version from 22.x to 24 to match the org-wide publish standard and stay ahead of Node 22 LTS EOL - Add `registry-url: https://registry.npmjs.org/` to setup-node so the runner writes a proper .npmrc with NODE_AUTH_TOKEN wired up for any plain `npm` calls in the job Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 994bbf4 commit 0186fea

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

‎.github/workflows/release-production-core.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write
912
steps:
1013
- uses: actions/checkout@v4
1114
- uses: pnpm/action-setup@v4
1215
with:
1316
version: 10.28.0
1417
- uses: actions/setup-node@v4
1518
with:
16-
node-version: '22.x'
19+
node-version: '24'
20+
registry-url: https://registry.npmjs.org/
1721

1822
- name: Enable Corepack
1923
run: corepack enable

‎.github/workflows/release-production-platform-plugins.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ on:
66
jobs:
77
build:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write
912
steps:
1013
- uses: actions/checkout@v4
1114
- uses: pnpm/action-setup@v4
1215
with:
1316
version: 10.28.0
1417
- uses: actions/setup-node@v4
1518
with:
16-
node-version: '22.x'
19+
node-version: '24'
20+
registry-url: https://registry.npmjs.org/
1721

1822
- name: Enable Corepack
1923
run: corepack enable

0 commit comments

Comments
 (0)