Skip to content

Commit 561c71c

Browse files
author
Lasim
committed
fix: update backend release workflow to use app token for GitHub actions
1 parent 960303e commit 561c71c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/backend-release-pr.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
- uses: actions/checkout@v4
3131
with:
3232
fetch-depth: 0
33+
# Use the app token for checkout as well
34+
token: ${{ secrets.APP_INSTALLATION_TOKEN }}
3335
- name: git config
3436
run: |
3537
git config user.name "${GITHUB_ACTOR}"
@@ -42,7 +44,7 @@ jobs:
4244
- run: npm ci
4345
- name: Prepare release
4446
env:
45-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ secrets.APP_INSTALLATION_TOKEN }}
4648
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
4749
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
4850
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG
@@ -60,6 +62,8 @@ jobs:
6062
uses: peter-evans/create-pull-request@v7
6163
id: cpr
6264
with:
65+
# This is the key change - use the app token
66+
token: ${{ secrets.APP_INSTALLATION_TOKEN }}
6367
branch: backend-release
6468
delete-branch: true
6569
commit-message: 'chore(backend): release v${{ steps.package-version.outputs.current-version}}'

0 commit comments

Comments
 (0)