Skip to content

Commit e0090cd

Browse files
icebob-aiclaude
andcommitted
ci: fix publish workflow for npm trusted publishing
- Node 24 (npm v11 required for OIDC token exchange) - Add registry-url for setup-node - Add workflow_dispatch for manual trigger - Remove redundant test step Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 61fff97 commit e0090cd

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/publish.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Publish to NPM
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
permissions:
89
id-token: write
@@ -15,22 +16,17 @@ jobs:
1516
steps:
1617
- uses: actions/checkout@v4
1718

18-
- name: Use Node.js 22.x
19+
- name: Use Node.js 24.x
1920
uses: actions/setup-node@v4
2021
with:
21-
node-version: 22.x
22-
23-
- name: Update npm (OIDC support)
24-
run: npm install -g npm@latest
22+
node-version: 24.x
23+
registry-url: https://registry.npmjs.org
2524

2625
- name: Install dependencies
2726
run: npm ci
2827

29-
- name: Run tests
30-
run: npm test
31-
3228
- name: Build
3329
run: npm run build
3430

3531
- name: Publish
36-
run: npm publish --access public
32+
run: npm publish --provenance --access public

0 commit comments

Comments
 (0)