Skip to content

Commit

Permalink
Merge pull request #13 from rikhall1515/hotfix/release-script
Browse files Browse the repository at this point in the history
fix: add permissions repo permissions to semantic release
  • Loading branch information
rikhall1515 authored Apr 9, 2024
2 parents 2794146 + 126e950 commit a016ad0
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 a016ad0

Please sign in to comment.