Originally created by: adityaharishch
Context
[#511] already merged as manual-only (workflow_dispatch), but the intent is auto-release on every merge to pre-main — no button. This PR does that, safely.
What it does
- Trigger:
push to pre-main (+ workflow_dispatch kept for on-demand / dry_run previews).
- No commit-message marker. semantic-release runs on every push and decides for itself: it cuts a new
v*-staging.N prerelease when there are releasable commits (feat/fix/perf…) since the last staging tag, and no-ops on chore/docs/ci-only merges. That tag triggers release-build.yml → per-arch DMG → staging channel.
Why this is the safe way to do auto-release
The earlier incident (accidental v1.72.0-staging.6) was not caused by auto-release — it was caused by matching the [staging-release] substring in a commit message you don't control (a squash body quoting the marker fired it). This removes the string match entirely and lets semantic-release judge the commits, which is the canonical pattern and cannot misfire.
Resulting workflow
- Merge a feat/fix to
pre-main → staging build cut & published automatically → dogfood on the staging channel → promote pre-main → main when happy.
- Merge a docs/ci-only change → no release.
Originally posted by: coderabbitai[bot]
✨ Finishing Touches
🧪 Generate unit tests (beta)
- [ ] Create PR with unit tests - [ ] Commit unit tests in branch `fix/staging-auto-release`Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share
- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai) - [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai) - [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai) - [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)Comment
@coderabbitai helpto get the list of available commands.Ticket changed by: adityaharishch