Skip to content

Commit 3c911ae

Browse files
chore: switch npm publish to trusted publishers (OIDC)
Drop NPM_TOKEN from the release workflow and publish via OIDC with Node 24. Provenance is generated automatically by npm trusted publishing. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 34d6a3d commit 3c911ae

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ jobs:
8181
needs: [ci, create-tag]
8282
if: always() && needs.ci.result == 'success' && (needs.create-tag.result == 'success' || needs.create-tag.result == 'skipped')
8383
runs-on: ubuntu-latest
84-
environment: npm
8584
permissions:
8685
contents: read
8786
id-token: write
@@ -92,18 +91,17 @@ jobs:
9291

9392
- uses: actions/setup-node@v6
9493
with:
95-
node-version: 20
94+
node-version: 24
9695
registry-url: https://registry.npmjs.org
96+
package-manager-cache: false
9797

9898
- run: npm ci
9999

100100
- name: Build
101101
run: npm run build
102102

103103
- name: Publish
104-
run: npm publish --provenance --access public
105-
env:
106-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
104+
run: npm publish --access public
107105

108106
github-release:
109107
name: GitHub Release

0 commit comments

Comments
 (0)