Skip to content

Commit

Permalink
ci(github): use gh app for release
Browse files Browse the repository at this point in the history
  • Loading branch information
genaumann committed Oct 14, 2024
1 parent 872859d commit 25f81f1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,27 @@ on:
- completed
branches:
- main
status:
- success

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.RELEASE_APP_ID }}
private_key: ${{ secrets.RELEASE_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Semantic Release
token: ${{ steps.generate_token.outputs.token }}
- name: Run semantic-release
uses: cycjimmy/semantic-release-action@v4
with:
extra_plugins: |
Expand All @@ -31,4 +40,4 @@ jobs:
@semantic-release/github
conventional-changelog-conventionalcommits
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}

0 comments on commit 25f81f1

Please sign in to comment.