Skip to content

Commit a69a247

Browse files
vintaclaude
andcommitted
ci: use Node 24 and scope id-token permission to job
Node 24 is required for npm's OIDC-based provenance publishing. Moved id-token: write to the job level to follow least-privilege practice. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7580c15 commit a69a247

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66

77
permissions:
88
contents: read
9-
id-token: write
109

1110
jobs:
1211
publish:
1312
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write
1415
steps:
1516
- uses: actions/checkout@v6
1617

@@ -42,7 +43,7 @@ jobs:
4243
4344
- uses: actions/setup-node@v6
4445
with:
45-
node-version: '22'
46+
node-version: '24'
4647
registry-url: 'https://registry.npmjs.org'
4748

4849
- run: npm publish --provenance --access public

0 commit comments

Comments
 (0)