Skip to content

Commit 4427ba2

Browse files
deepracticexcclaude
andcommitted
ci: auto-merge changeset version PRs
Only merges PRs created by the changeset action (version bumps), not contributor PRs. Triggered when changesets.outputs.pullRequestNumber exists and nothing was published yet. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f8884b1 commit 4427ba2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ jobs:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4949
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
50+
51+
- name: Auto-merge version PR
52+
if: steps.changesets.outputs.published != 'true' && steps.changesets.outputs.pullRequestNumber
53+
run: gh pr merge ${{ steps.changesets.outputs.pullRequestNumber }} --squash --auto
54+
env:
55+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)