Skip to content

Commit

Permalink
ci: Use the rpf3 bot to commit version changes
Browse files Browse the repository at this point in the history
This commit updates the release action configuration to use a personal
GitHub App to checkout and commit changes to the repository. This App
has access to the repository's protected branches through a bypass on
the protection rule.
  • Loading branch information
rpf3 committed May 1, 2024
1 parent 43c11b7 commit 95896c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Package Release
on:
push:
branches:
- main
- action

jobs:
npm-package:
Expand All @@ -12,10 +12,18 @@ jobs:
permissions:
contents: write
steps:
- name: Create bot access token
id: app-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.RPF3_BOT_APP_ID }}
private-key: ${{ secrets.RPF3_BOT_PRIVATE_KEY }}

- name: Checkout the repository
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0
Expand Down

0 comments on commit 95896c2

Please sign in to comment.