Skip to content

Commit 5bfb85a

Browse files
ci: switch release workflow to npm trusted publishing (OIDC) (#2157)
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 0bddd16 commit 5bfb85a

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,18 @@ on:
88

99
concurrency: ${{ github.workflow }}-${{ github.ref }}
1010

11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
id-token: write # Required for npm trusted publishing (OIDC)
15+
1116
jobs:
1217
release:
1318
name: Release
1419
runs-on: ubuntu-latest
1520
steps:
1621
- name: Checkout Repo
17-
uses: actions/checkout@v3
22+
uses: actions/checkout@v4
1823

1924
- uses: pnpm/action-setup@v3
2025

@@ -37,5 +42,3 @@ jobs:
3742
commit: "chore: release"
3843
env:
3944
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
41-
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.19.0
1+
24.15.0

0 commit comments

Comments
 (0)