Skip to content

Commit 6b716ec

Browse files
authored
Use trusted publishing for release workflow (#1334)
1 parent 2f88c4e commit 6b716ec

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77

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

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write # Required to create GH releases
13+
pull-requests: write # Required to interact with PRs
14+
1015
jobs:
1116
release:
1217
name: Release
@@ -38,7 +43,6 @@ jobs:
3843
publish: pnpm ci:publish
3944
env:
4045
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4246

4347
- name: Create git tag for golang package
4448
if: steps.changesets.outputs.published == 'true'

0 commit comments

Comments
 (0)