Skip to content

Commit 45bdad8

Browse files
[CI] - Use npm Trusted Publishing (OIDC) instead of token
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent f980a22 commit 45bdad8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ on:
1818

1919
permissions:
2020
contents: write
21+
id-token: write
2122

2223
jobs:
2324
ci:
@@ -80,6 +81,10 @@ jobs:
8081
needs: [ci, create-tag]
8182
if: always() && needs.ci.result == 'success' && (needs.create-tag.result == 'success' || needs.create-tag.result == 'skipped')
8283
runs-on: ubuntu-latest
84+
environment: npm
85+
permissions:
86+
contents: read
87+
id-token: write
8388
steps:
8489
- uses: actions/checkout@v5
8590
with:
@@ -97,8 +102,6 @@ jobs:
97102

98103
- name: Publish
99104
run: npm publish --provenance --access public
100-
env:
101-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
102105

103106
github-release:
104107
name: GitHub Release

0 commit comments

Comments
 (0)