Releases
ocman releases in three channels. All tags are created on Forgejo, and nightly and stable builds are published on the GitHub mirror . Users can install stable, nightly or an exact tag with the shell installer .
| Channel | When | Tag | Published |
|---|---|---|---|
| Dev | Every push to main that passes CI and contains a releasable commit | v0.274.0-dev.3 | Tag only. Build it locally with git checkout v0.274.0-dev.3 && make build. |
| Nightly | Daily at 03:23 UTC, or on demand, when a newer dev tag exists | v0.274.0-nightly.20261107 | GitHub prerelease with binaries and the macOS DMG |
| Stable | On demand only | v0.274.0 | GitHub release, marked latest |
A nightly always tags the nearest dev-tagged commit on main, so it ships a
commit that passed CI. A stable release promotes the nearest nightly on
main, and only once that nightly’s GitHub release is published with every
asset, so it ships a build that nightly users could already run. “Nearest”
follows main’s history, not tag creation time, because CI runs can finish
out of order; a commit whose descendant is already tagged gets no dev tag.
Files
.forgejo/workflows/ci.yml: after the frontend, backend and end-to-end jobs pass onmain, the Dev Tag job pushes an annotatedvX.Y.Z-dev.Ntag. It also tags the SDK module..forgejo/workflows/cut-release.yml: creates nightly tags on a schedule and nightly or stable tags on demand.scripts/release-tag.sh: chooses the next tag for each channel.make lint-release-scriptsruns its self-test.scripts/check_published_release.py: before a stable promotion, checks that the nightly’s GitHub release is published on the same commit with every asset. Set the optional Forgejo secretGITHUB_MIRROR_TOKENif anonymous GitHub API limits get in the way.cliff.toml: commit grouping, filtering, changelog formatting and version-bump policy. Its tag pattern matches stable tags only, so the version always bumps from the previous stable release..github/workflows/release.yml: runs on GitHub when a nightly or stable tag arrives through the push mirror. It builds the frontend and macOS DMG, then runs GoReleaser to build CLI archives, publish the GitHub release and update the Homebrew tap. Notes come from the annotated tag message..goreleaser.yaml: defines the four CLI targets, compatible archive names, checksums, desktop DMG attachment and stable/nightly casks. The OSS tool version is pinned inmise.tomland read by the release workflow.
Versions and release notes
The next version comes from git-cliff --bumped-version since the previous
stable tag. Dev and nightly tags preview that version, and their counter or
date distinguishes builds of it.
Each tag’s annotation holds its changelog:
- a dev tag lists the commits since the previous tag of any channel;
- a nightly lists the commits since the previous nightly or stable tag;
- a stable release lists every commit since the previous stable release.
Homebrew tap
The separate ocman/homebrew-tap repository holds generated casks pointing at GitHub archives, not source builds. GoReleaser generates casks in this tap; tap updates never commit to the application repository.
flowchart LR
Tags[Forgejo release tags] --> Mirror[GitHub mirror]
Mirror --> Frontend[Frontend build]
Frontend --> Desktop[macOS DMG build]
Frontend --> GoReleaser[GoReleaser OSS<br/>four CLI targets]
Desktop --> GoReleaser
GoReleaser --> Releases[GitHub archives, checksums and DMG]
GoReleaser --> Tap[ocman/homebrew-tap<br/>Casks commits on main]
Releases --> DesktopCask[Desktop cask script]
DesktopCask --> Tap
Tap --> Brew[Homebrew]
Releases -->|SHA-256 verified download| Brew
- GoReleaser builds CLI binaries with the frontend already embedded. It keeps
the
ocman-{darwin,linux}-{amd64,arm64}.tar.gzdownload names, now containing an executable namedocman, and addschecksums.txt. The shell installer also accepts the platform-suffixed executable names from older releases. - Stable releases generate
Casks/ocman.rb; nightly prerelease tags generateCasks/ocman-nightly.rb. Only the releasing channel changes. We use normal tagged prereleases, not GoReleaser Pro’s--nightlyfeature. - The release uses
GITHUB_TOKENto publish onocman/ocmanand the separateHOMEBREW_TAP_TOKENto update the tap’smainthrough GitHub’s API. No scheduled refresh job or custom formula generator is needed. - The
ocmanandocman-nightlycasks install the CLI and conflict with the other channel. On macOS, a post-install hook removes quarantine from that CLI because it is not notarized. See the installation security note . - Casks depend only on
tmux. Their caveats suggest the OpenCode, Claude Code and Codex packages. They don’t install them, because users pick their own agents. - GoReleaser OSS cannot build casks from a DMG it did not create, so after
GoReleaser publishes,
scripts/publish_desktop_cask.pywritesCasks/ocman-desktop.rbfor stable tags orCasks/ocman-desktop-nightly.rbfor nightlies. It uses the sameHOMEBREW_TAP_TOKENand the contents API, and skips the commit when the cask is unchanged. These casks installocman.appfrom the arm64 DMG, conflict only with the other desktop channel, and remove quarantine from the app.
One-time tap setup
- Create the public GitHub repository
ocman/homebrew-tap, initialized with a README andmainas its default branch. It is not a Forgejo push mirror. - Create a fine-grained GitHub personal access token with resource owner
ocman, repository access limited tohomebrew-tap, and repository Contents: Read and write. Metadata read access is automatic. No Actions, Workflows or Administration write permissions are needed. Choose an expiry and renew the secret before it expires. Approve the token in the organization if its policy requires approval. - In the GitHub
ocman/ocmanrepository, open Settings → Secrets and variables → Actions and add the repository secretHOMEBREW_TAP_TOKEN. Store the token there, not in the tap or Forgejo. The defaultGITHUB_TOKENcannot write to a different repository. - Ensure tap rules allow that token’s user to push to
main. A rule requiring pull requests or checks would block direct cask updates unless that user has an explicitly configured bypass. No force-push permission is required. - Once this change has reached GitHub’s
main, cut a new nightly whose tag contains.goreleaser.yaml. Watch GitHub’s Release workflow and confirm it createsCasks/ocman-nightly.rbandCasks/ocman-desktop-nightly.rbin the tap. The first stable release createsCasks/ocman.rbandCasks/ocman-desktop.rb. Actions need not be enabled in the tap itself.
Run mise install goreleaser, then goreleaser check to validate the config.
python3 scripts/test_goreleaser.py exercises it against disposable Go fixtures
with stable and nightly tags, without publishing. It checks all archives,
checksums, version stamping and generated casks.
python3 scripts/test_publish_desktop_cask.py checks the desktop casks
against a fake GitHub API. make lint-release-scripts
also runs these tests when GoReleaser is installed; GitHub always runs them
before publishing. See installation
.
Cutting a release
- Open Actions → Cut Release on Forgejo and choose Run workflow on
main. - Pick
nightlyto publish the newest dev tag now, orstableto promote the newest nightly. Additional nightlies for the same version on the same UTC day get.2,.3, and so on, for examplev0.274.0-nightly.20261107.2. If the commit already shipped, the nightly run does nothing. - For a stable release, leave version empty to use the version the nightly previewed, or enter a newer
X.Y.Z. - Watch the Release workflow on GitHub publish the build.
To ship the current tip of main, wait for its dev tag, run nightly, and
verify the published nightly points at that commit before running stable.
For the first numbered nightly, wait for a dev tag that includes support for
numbered nightlies. GitHub runs the release workflow from the tagged commit.
A stable release fails when the nightly is already part of a stable release, its GitHub release is not published yet or lacks assets, or the version is not newer than the latest stable tag. Wait for the GitHub build, or cut a newer nightly, and try again.
One-time setup
- Create a Forgejo personal access token that can push tags and sync push mirrors for this repository. Mirror sync needs repository admin rights.
- Save it as the Forgejo repository secret
RELEASE_PAT. - Make sure the GitHub push mirror pushes tags and that its GitHub credential can trigger workflows. Enable GitHub Actions on the mirror.
The Forgejo jobs use RELEASE_PAT for checkout and push credentials, tag
lookups and mirror sync, falling back to the default automation token when
it is absent. Without mirror sync, tags reach GitHub at the mirror’s next
interval, and the GitHub release waits until then.
Commit format
Use Conventional Commits for changes that should drive versioning:
| Commit | Version change |
|---|---|
fix: correct tmux session lookup | Patch |
perf: reduce session query work | Patch |
refactor: simplify runtime lookup | Patch |
feat: add project detail page | Minor |
feat!: change session API shape | Major |
A BREAKING CHANGE: footer also marks a breaking change. The configured bump
policy keeps feature bumps minor and breaking bumps major even before 1.0.
Routine docs, test, ci, build, style, lint and chore commits are
hidden from release notes and create no dev tag. Non-conventional messages
are filtered out.
Integrate changes onto main with linear history: squash, rebase or
fast-forward; no merge commits. There is no release PR.
Troubleshooting
If no dev tag is created:
- Confirm CI ran for a push to
mainand all three prerequisite jobs passed. - Inspect Dev Tag for a skipped version or a tag lookup or push error.
- Check that commits since the previous
v*tag match the visible types incliff.toml.
If a nightly or stable tag exists but GitHub has no release:
- Check that the tag reached GitHub. The Sync push mirrors step warns when it could not sync.
- GitHub sends no push event when more than three tags arrive at once. Run the GitHub Release workflow by hand with the tag name.
- Inspect the frontend, desktop packaging and GoReleaser publish jobs for failures. Re-running the workflow replaces the release notes and matching assets. It also repoints that channel’s cask to the selected tag, so rerun the newest tag for that channel.