Release
Cut a release that the installers download, through the release workflow or by hand.
The installers download two files from the latest GitHub release: open-ultracode-release.tar.gz and open-ultracode-release.tar.gz.sha256. A release that is marked as a prerelease is never the latest.
Prepare#
- Set the new version in
package.jsonand in the version check oftests/assets.test.ts. - Run
pnpm run checkandpnpm run docs:check. - Merge the change into
main.
Release with the workflow#
The workflow .github/workflows/release.yml runs on a tag of the form v1.2.3. GitHub Actions must be enabled for the repository.
git checkout main && git pull
git tag v2.1.1
git push origin v2.1.1Before the push, the pre-push hook runs the live runtime check against your installed opencode. The workflow then:
- runs
pnpm run checkon Linux, macOS and Windows with Node.js 22 and 24 - validates the pages and fails when
docs/is out of date - fails if the tag differs from the version in
package.json - builds the archive with
scripts/build-release-archive.mjsand writes its checksum withsha256sum - creates the release with both files
A tag with a hyphen, such as v2.2.0-rc.1, creates a prerelease. A manual run of the workflow creates a prerelease named manual- with the run number.
When the runtime check fails#
The check asks the coordinator to call each fusion agent once, through your opencode and your provider accounts. It fails when a model does not answer, whatever the cause: a wrong model name, an account without balance or quota, or a provider that is down. The hook then refuses the push:
pre-push: the runtime check failed; fix the installation before releasing.- Read the lines that start with
FAIL. Each names the agent or the provider error. - If a model name or a variant is wrong, fix it with Choose fusion models and push again.
- If your accounts cannot answer, run the same check with models that can. Create a directory with an
opencode.jsonthat setsmodel, and a project directory with the three fusion agents in.opencode/agents, each with amodelthat answers.
node scripts/runtime-check.mjs --live --config-dir /tmp/gate/config --directory /tmp/gate/project result: OKgit push --no-verify skips the hook. The release workflow does not run the runtime check, so nothing else tests the release in a real opencode.
Release by hand#
Use this when Actions is not available.
node scripts/build-release-archive.mjs /tmp/release/open-ultracode-release.tar.gz
cd /tmp/release
sha256sum open-ultracode-release.tar.gz > open-ultracode-release.tar.gz.sha256
gh release create v2.1.1 open-ultracode-release.tar.gz open-ultracode-release.tar.gz.sha256 \
--repo belikh/OpenUltraCode --title v2.1.1 --target main \
--notes "OpenUltraCode release archive for install.sh and install.ps1."Run sha256sum inside the directory, so the checksum file names the archive without a path.
Publish the pages#
docs.jupiter.au reads the pages from the newest release that has a docs.config.json. Its build runs once a day. To publish sooner:
gh workflow run docs-site.yml --repo belikh/docsCheck the release#
Install it into temporary directories. The command fails if the download or the checksum is wrong.
curl -fsSL https://raw.githubusercontent.com/belikh/OpenUltraCode/main/install.sh |
OPENCODE_CONFIG_DIR=/tmp/check/config OPENULTRACODE_HOME=/tmp/check/open-ultracode \
sh -s -- --non-interactive --skip-runtime-checkOpenUltraCode 2.1.1 installed