Skip to content

Commit ebeb2f8

Browse files
chore: switch npm publish to trusted publishers via OIDC (#38)
* chore: fix trusted publishers workflow — use Node 22 and npm publish Node >= 22.14.0 (npm >= 11.5.1) is required for trusted publisher OIDC auth. Provenance is generated automatically, no flag needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * chore: update publish workflow to match npm trusted publishers docs Use actions/checkout@v6, actions/setup-node@v6, and Node 24 as recommended by npm trusted publishers documentation. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d3c564e commit ebeb2f8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/publish-node-sdk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v4
16+
uses: actions/checkout@v6
1717

1818
- name: Set up Node.js
19-
uses: actions/setup-node@v4
19+
uses: actions/setup-node@v6
2020
with:
21+
node-version: '24'
2122
registry-url: 'https://registry.npmjs.org'
22-
node-version: '20'
2323

2424
- name: Enable corepack
2525
run: corepack enable pnpm
@@ -31,7 +31,7 @@ jobs:
3131
run: pnpm build
3232

3333
- name: Publish to npm
34-
run: pnpm publish --access public --provenance
34+
run: npm publish --access public
3535

3636
- name: Get version from package.json
3737
id: package-version

0 commit comments

Comments
 (0)