Repository navigation
ci: publish a beta of every push to main and start stable releases by hand - #23
Merged
Merged
Conversation
CFBundleVersion takes only one to three dot-separated integers, so a prerelease version such as 0.5.0-beta.3 can't go there. set-version.sh now takes the build number as its own argument and rejects anything else. Releases pass the CI run number, which only goes up.
… hand Every push to main with releasable commits publishes the next version as a beta prerelease with the DMG, such as v0.5.0-beta.42. A semantic-release dry run finds the version, and the beta commits nothing. A stable release no longer runs on every push. A maintainer starts it from Actions, and it runs only on a commit that already shipped as a beta, so stable ships what beta users have run. It attaches the DMG and has its own concurrency group, so a newer push can't cancel it while it waits. A run that ends without a stable tag fails, because semantic-release exits successfully when main moved during the run.
This was referenced Oct 19, 2026
|
🎉 This PR is included in version 0.5.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
M4n0x
added a commit
that referenced
this pull request
Nov 8, 2026
GitHub doesn't link #23 in repository files, so every reference is a link now. A beta ships when the app changed since the newest release, which a docs-only push can still do for a pending change, and only builds since 0.9.0 skip what a newer release wrote.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Fixes #3. Releases have no DMG, and every push to
mainwith afeatorfixcommit publishes a stable release straight away, so nothing is tested before it reaches everyone.Changes
ci.yml, newbetajob): after the tests pass on a push tomain, a semantic-release dry run finds the next version (verifyReleaseCmdwrites it to.next-version). The job builds the DMG as<next>-beta.<run number>and publishes it withgh release create --prerelease. It commits nothing. With no releasable commits since the last stable release, there is no beta.releasejob): runs only from Actions → CI → Run workflow onmain. It fails unless a beta tag points at the newest commit, then runs semantic-release as before, now building the DMG inprepareCmdand attaching it to the release. It has its own concurrency group, so a newer push can't cancel it while it waits. A last step fails the run if no stable tag was made, because semantic-release exits successfully without releasing whenmainmoves during the run.set-version.sh): takes the build number as a second argument, writes it toCFBundleVersion, and rejects anything but one to three dot-separated integers. Both jobs passgithub.run_number, which only goes up within this workflow, so a stable build always numbers higher than the betas before it. Check for and install updates in the app, on a stable or beta channel #22 relies on that.#3's open questions stay at these defaults until they're decided: a beta on every push, ad-hoc-signed DMGs, Apple silicon only. No new secrets or settings are needed.
Testing
swift test: all 102 tests pass, including the newset-version.shcases. The version and build number are written separately, and1.2.3-beta.4,1.2.3.4or a plist path as the build number is rejected with the plist untouched.ci/docscommits since v0.4.0, nothing is written to.next-version;feat:commit, the dry run exits 0, skips prepare and publish, and writes0.5.0;v0.5.0-beta.7tag onmainand a laterfix:, the last release is still v0.4.0 and the next version 0.5.0, so beta tags don't change stable versions.betaandreleasejobs themselves,gh release create, and the DMG on a clean Mac. Merging this publishes nothing, becausemainhas onlyci,docsandchorecommits since v0.4.0. The first beta comes with the nextfeat:orfix:merge. After it, start a stable run, checkplutil -pon the mounted DMG'sInfo.plist, and try the "Open Anyway" step on another Mac.Not in this pull request:
vX.Y.Z-beta.Ntags from stable ones.hdiutil createoccasionally fails on GitHub's macOS runners. A retry would go inpackage.sh.Merging
A merge commit or a rebase merge. None of the commits (
build,ci,docs) makes a release.Claude Opus 5.5 via Claude Code