Skip to content

Commit 2fbda52

Browse files
authored
ci: remove auto-merge to fix release triggering (#479)
GitHub's auto-merge feature uses an internal token that cannot trigger workflows. Even with manual approval, the merge performed by auto-merge doesn't trigger the release workflow. Removing auto-merge means: 1. Version PR is created with CI running 2. User manually merges the PR (clicking "Merge") 3. The merge triggers the release workflow 4. Package is published This aligns with industry standard practice for changesets.
1 parent 5633556 commit 2fbda52

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

.github/workflows/release-prepare.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747

4848
# Opens/updates the Version Packages PR; publishes when the Version PR merges
4949
- name: Create/Update Version PR
50-
id: changesets
5150
uses: changesets/action@v1
5251
with:
5352
title: 'chore(release): version packages'
@@ -58,10 +57,3 @@ jobs:
5857
env:
5958
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
6059
# npm authentication handled via OIDC trusted publishing (no token needed)
61-
62-
# Auto-merge the version PR when CI passes (reduces release to effectively 1 PR)
63-
- name: Enable auto-merge for Version PR
64-
if: steps.changesets.outputs.pullRequestNumber
65-
run: gh pr merge ${{ steps.changesets.outputs.pullRequestNumber }} --auto --squash
66-
env:
67-
GH_TOKEN: ${{ steps.app-token.outputs.token }}

0 commit comments

Comments
 (0)