ci: use npm trusted publishing (OIDC) instead of token

This commit is contained in:
Tobi Lutke 2026-02-15 14:59:09 -04:00
parent 73985a2aaa
commit 53bf2ebf10
No known key found for this signature in database

View File

@ -10,6 +10,7 @@ jobs:
permissions:
contents: write
id-token: write
steps:
- uses: actions/checkout@v4
@ -29,9 +30,7 @@ jobs:
node-version: 22
registry-url: https://registry.npmjs.org
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish --provenance --access public
- name: Create GitHub Release
env: