mirror of
https://github.com/changesets/action
synced 2026-10-26 16:39:56 +08:00
Fix the ability to create GitHub releases in our own workflow (#614)
This commit is contained in:
@@ -40,6 +40,8 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: marketplace
|
environment: marketplace
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
|
permissions:
|
||||||
|
contents: write # to create release and have it authored by github-actions (changesets/action)
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
|
- uses: actions/create-github-app-token@1b10c78c7865c340bc4f6099eb2f838309f1e8c3 # v3.1.1
|
||||||
id: app-token
|
id: app-token
|
||||||
@@ -49,6 +51,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
with:
|
with:
|
||||||
|
# we need this token to bypass the branch and tag protection rules
|
||||||
token: ${{ steps.app-token.outputs.token }}
|
token: ${{ steps.app-token.outputs.token }}
|
||||||
|
|
||||||
- uses: ./.github/actions/ci-setup
|
- uses: ./.github/actions/ci-setup
|
||||||
|
|||||||
Reference in New Issue
Block a user