Skip to content

Commit b5dd69e

Browse files
committed
fix(ci): use OIDC provenance for npm publish
Replace NPM_TOKEN auth with --provenance flag for trusted publishing via GitHub Actions OIDC. Requires id-token: write permission (already set) and npm trusted publishing configured on the package.
1 parent d1621a6 commit b5dd69e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/release-please.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,4 @@ jobs:
4444

4545
- name: Publish to npm
4646
if: ${{ steps.release.outputs.release_created }}
47-
run: pnpm publish --access public --no-git-checks
48-
env:
49-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
run: pnpm publish --access public --no-git-checks --provenance

0 commit comments

Comments
 (0)