Skip to content

Commit a21e85c

Browse files
committed
ci: add packages:write permission for trusted publishing
1 parent c72568a commit a21e85c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
permissions:
1212
id-token: write
1313
contents: read
14+
packages: write
1415
steps:
1516
- uses: actions/checkout@v6
1617
- uses: oven-sh/setup-bun@v2
@@ -22,4 +23,4 @@ jobs:
2223
registry-url: https://registry.npmjs.org
2324
- run: bun install --frozen-lockfile
2425
- run: bun run build
25-
- run: npm publish --provenance --access public
26+
- run: unset NODE_AUTH_TOKEN && npm publish --provenance --access public

0 commit comments

Comments
 (0)