Skip to content

Commit

Permalink
ci(release): use github-app for releases
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m authored Nov 15, 2023
1 parent 089585b commit f3a8d04
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 @@ -15,9 +15,14 @@ jobs:
- run: npm ci
- run: npm run build
- run: npm install @semantic-release/git
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: 474182
private-key: ${{ secrets.GR2M_SEMANTIC_RELEASE_PRIVATE_KEY }}
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GR2M_PAT_FOR_SEMANTIC_RELEASE }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
- run: >-
git push
https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
Expand Down

0 comments on commit f3a8d04

Please sign in to comment.