Repository navigation
Description
Edited 2026-10-16: betas now come from main instead of a develop branch, and a stable release is started by hand from a commit that already shipped as a beta.
Problem
Releases from main publish a version, changelog and tag, but no installer: no release so far (v0.1.1 to v0.4.0) has assets. Anyone who wants the app must build the DMG locally with scripts/package.sh. There is also no way to ship a build for testing before it reaches the stable release.
Proposal
Build dist/StableBar.dmg in CI and release it on two channels, both from main. With no develop branch, nothing has to be merged between branches.
- Beta: every push to
mainpublishesvX.Y.Z-beta.Nas a GitHub prerelease with the DMG.X.Y.Zis the next stable version, so each beta previews it. - Stable: a maintainer starts the release by hand. It ships only a commit that already went out as a beta, as
vX.Y.Zwith the DMG, changelog and tag as today.
Changes this needs:
.github/workflows/ci.yml, beta: add abetajob that runs afterteston pushes tomain. It asks semantic-release for the next version in dry-run mode and stops if there is nothing to release. Otherwise it runs./scripts/set-version.shwithX.Y.Z-beta.<run number>, builds with./scripts/package.sh, and runsgh release create vX.Y.Z-beta.N dist/StableBar.dmg --prerelease --target "$GITHUB_SHA" --generate-notes. It commits nothing, soCHANGELOG.mdandInfo.plistonmainchange only at stable releases..github/workflows/ci.yml, stable: run thereleasejob onworkflow_dispatchinstead of on every push. Before semantic-release, it checks that av*-beta.*tag points at the commit, and stops otherwise. Give it its own concurrency group so a newer push can't cancel it while it waits..releaserc.json: give@semantic-release/exec"verifyReleaseCmd": "echo ${nextRelease.version} > .next-version"for the beta job's dry run, and set itsprepareCmdto./scripts/set-version.sh ${nextRelease.version} $GITHUB_RUN_NUMBER && ./scripts/package.sh. Give@semantic-release/github{ "assets": [{ "path": "dist/StableBar.dmg" }] }. semantic-release ignores prerelease tags when it looks for the last release onmain, so beta tags don't change stable versions.scripts/set-version.sh:CFBundleVersionaccepts only digits and dots, so0.5.0-beta.3can't go there. Take a build number as a second argument: write the full version toCFBundleShortVersionStringand the CI run number toCFBundleVersion. Both jobs live inci.ymland sharegithub.run_number, which only goes up, so a stable build always gets a higher number than the beta of the same commit. In-app updates (Check for and install updates in the app, on a stable or beta channel #22) rely on that. Add a test inReleaseTests.swift.- "Commits and releases" in
CONTRIBUTING.md: describe both channels and how to start a stable release (Actions → CI → Run workflow).
Open questions
- Beta cadence: a beta on every push to
maincan mean several a day, and a docs-only push still builds one while unreleased fixes are waiting. Is that fine, or should betas run on a schedule, for example at most once a day and only whenmainhas changed? - Signing and notarization: without
SIGNING_IDENTITYandNOTARY_PROFILE,package.shmakes an ad-hoc-signed DMG that macOS blocks as coming from an unidentified developer. Signing in CI needs a Developer ID certificate and notary credentials as repo secrets, imported into a temporary keychain on the runner. Only the repo owner can add those. Should CI ship unsigned DMGs until they exist? - Architecture:
package.shbuilds for the build Mac's processor family, andmacos-26runners are Apple silicon, so a CI DMG won't run on Intel Macs. Should it be a universal (arm64+x86_64) build?
Possible today
Partly. scripts/package.sh builds the DMG locally and can sign and notarize it. Every push to main with releasable commits makes a stable release, without a DMG. There is no beta channel.
Related
- ci: test pull requests and release main with semantic-release #1 set up the release pipeline and left the DMG out on purpose because it was being built separately. This issue picks that up and adds the beta channel.
- Check for and install updates in the app, on a stable or beta channel #22 checks for and installs updates in the app, on the stable or beta channel this issue creates.
Triaged by Claude Code (Claude Opus 5.5).
Activity
[-]Build the DMG in CI and release stable from main and beta from develop[/-][+]Build the DMG in CI, publish betas from main and promote stable by hand[/+]stablebar-releases commentedon Oct 21, 2026
🎉 This issue has been resolved in version 0.5.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀