Skip to content

Commit

Permalink
fix: add permissions repo permissions to semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhall1515 committed Apr 9, 2024
1 parent 6116d20 commit 43a395b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,16 @@ jobs:
pull-requests: write # to be able to comment on released pull requests

steps:
- name: "Generate token"
id: generate_token
uses: tibdex/github-app-token@v1
with:
app_id: ${{ secrets.BOT_APP_ID }}
private_key: ${{ secrets.BOT_PRIVATE_KEY }}
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
- uses: pnpm/action-setup@v3
with:
version: 8.15.6
Expand All @@ -38,5 +45,5 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
run: npx semantic-release

0 comments on commit 43a395b

Please sign in to comment.