Skip to content

Commit ccba80b

Browse files
authored
Fix the ability to create GitHub releases in our own workflow (#614)
1 parent 84c2432 commit ccba80b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040
runs-on: ubuntu-latest
4141
environment: marketplace
4242
timeout-minutes: 20
43+
permissions:
44+
contents: write # to create release and have it authored by github-actions (changesets/action)
4345
steps:
4446
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
4547
id: app-token
@@ -49,6 +51,7 @@ jobs:
4951

5052
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5153
with:
54+
# we need this token to bypass the branch and tag protection rules
5255
token: ${{ steps.app-token.outputs.token }}
5356

5457
- uses: ./.github/actions/ci-setup

0 commit comments

Comments
 (0)