Skip to content

Commit a5355c7

Browse files
authored
set up trusted publishing for npm (#215)
1 parent a463b93 commit a5355c7

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
release:
1212
name: Release
1313
runs-on: ubuntu-latest
14+
permissions:
15+
id-token: write # Required for OIDC
16+
contents: write
17+
packages: write
18+
pull-requests: write
19+
issues: read
1420
steps:
1521
- uses: actions/checkout@v5
1622
with:
@@ -31,6 +37,11 @@ jobs:
3137
- name: Enable turborepo build cache
3238
uses: rharkor/[email protected]
3339

40+
# Ensure npm 11.5.1 or later is installed (for trusted publishing)
41+
# (pnpm publish calls npm under the hood)
42+
- name: Update npm
43+
run: npm install -g npm@latest
44+
3445
# ------------------------------------------------------------
3546
- name: Create Release Pull Request or Publish to npm
3647
id: changesets

0 commit comments

Comments
 (0)