Skip to content

Commit

Permalink
ci(release): use github app token
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Jan 28, 2024
1 parent 93b6bfd commit 2a99dbf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ jobs:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.GR2M_RELEASER_GITHUB_APP_ID }}
private-key: ${{ secrets.GR2M_RELEASER_GITHUB_APP_PRIVATE_KEY }}
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
Expand All @@ -24,7 +29,7 @@ jobs:
extra_plugins: |
@semantic-release/git
env:
GITHUB_TOKEN: ${{ secrets.GR2M_PAT_FOR_SEMANTIC_RELEASE }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- if: steps.semantic.outputs.new_release_published == 'true'
run: >-
git push
Expand Down

0 comments on commit 2a99dbf

Please sign in to comment.