Skip to content

ci: add sync workflow to merge release tags back to main#75

Merged
designcode merged 1 commit intomainfrom
ci/beta-releases-and-sync
Apr 8, 2026
Merged

ci: add sync workflow to merge release tags back to main#75
designcode merged 1 commit intomainfrom
ci/beta-releases-and-sync

Conversation

@designcode
Copy link
Copy Markdown
Collaborator

@designcode designcode commented Apr 8, 2026

Summary

  • Adds sync-release-to-main.yaml workflow that runs after each successful Release workflow on the release branch
  • Automatically creates and merges a PR from releasemain (merge commit) so release tags are reachable from main's history
  • Fixes the root cause of beta versions being stuck — semantic-release on main couldn't see stable release tags because they lived on merge commits only reachable from release

How it works

  1. Release workflow completes on release branch
  2. Sync workflow triggers via workflow_run
  3. Checks if release is ahead of main
  4. Creates a PR releasemain and auto-merges with merge commit

Test plan

🤖 Generated with Claude Code


Note

Medium Risk
Adds an automated workflow that can create and merge PRs into main with write permissions; misconfiguration or unexpected release history could cause unintended merges.

Overview
Adds a new GitHub Actions workflow (sync-release-to-main.yaml) that triggers after a successful Release workflow run on the release branch.

When release is ahead of main, it uses the GitHub CLI to create (if needed) and auto-merge a releasemain sync PR, ensuring release commits/tags are merged back into main history.

Reviewed by Cursor Bugbot for commit fda6b4c. Bugbot is set up for automated code reviews on this repo. Configure here.

After each stable release on the release branch, this workflow
automatically creates and merges a PR from release to main,
ensuring release tags are reachable from main's history.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit fda6b4c. Configure here.

designcode

This comment was marked as duplicate.

@designcode designcode merged commit f30280d into main Apr 8, 2026
3 checks passed
@designcode designcode deleted the ci/beta-releases-and-sync branch April 8, 2026 15:22
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

🎉 This PR is included in version 2.16.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants