Skip to content

Commit 44fdd0e

Browse files
luwesclaude
andauthored
chore(ci): publish to npm with trusted publishing (#1618)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 2b97dd0 commit 44fdd0e

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,10 @@ jobs:
4040
- name: npm install
4141
run: npm i --prefer-offline --no-audit
4242

43-
# publish runs build for us via a prepublishOnly script
43+
# publish runs build for us via a prepublishOnly script.
44+
# auth uses npm trusted publishing (OIDC), which needs id-token: write.
4445
- name: npm release
4546
run: npm publish --tag next
46-
env:
47-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4847

4948
- name: Check if this is a pre-release
5049
run: echo "IS_PRE_RELEASE=$(npx -p not-prerelease is-prerelease && echo "true" || echo "false")" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)