Skip to content

Commit dba16e0

Browse files
fix(ci): use JEngine Release Bot for plugin releases
Use GitHub App token (same as release.yml) instead of GITHUB_TOKEN to ensure commits are made by JEngine Release Bot. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> Signed-off-by: JasonXuDeveloper - 傑 <jason@xgamedev.net>
1 parent ae29a2f commit dba16e0

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/release-plugin.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,19 @@ jobs:
2626
(github.ref == 'refs/heads/master' || github.event_name == 'workflow_dispatch') &&
2727
(github.event_name == 'workflow_dispatch' || !contains(github.event.head_commit.message || '', 'chore(plugin): bump version'))
2828
steps:
29-
- uses: actions/checkout@v4
29+
# Generate GitHub App token for authenticated commits (same as release.yml)
30+
- name: Generate GitHub App Token
31+
id: generate-token
32+
uses: actions/create-github-app-token@v1
33+
with:
34+
app-id: ${{ secrets.RELEASE_APP_ID }}
35+
private-key: ${{ secrets.RELEASE_APP_PRIVATE_KEY }}
36+
37+
- name: Checkout repository
38+
uses: actions/checkout@v4
3039
with:
3140
fetch-depth: 0
32-
token: ${{ secrets.GITHUB_TOKEN }}
41+
token: ${{ steps.generate-token.outputs.token }}
3342

3443
- name: Bump plugin version
3544
id: bump
@@ -52,8 +61,8 @@ jobs:
5261
5362
- name: Commit and tag
5463
run: |
55-
git config user.name "github-actions[bot]"
56-
git config user.email "github-actions[bot]@users.noreply.github.com"
64+
git config user.name "jengine-release-bot[bot]"
65+
git config user.email "257041894+jengine-release-bot[bot]@users.noreply.github.com"
5766
git add claude-plugin/claude.json
5867
git commit -m "chore(plugin): bump version to ${{ steps.bump.outputs.version }}"
5968
git tag "plugin-v${{ steps.bump.outputs.version }}"

0 commit comments

Comments
 (0)