Release lines and upgrades
The lines
| Branch | Major | Release tags | Runner image tags |
|---|---|---|---|
main | 8.x | v8.y.z | sha-<commit>, 8.x |
4.x | 4.x, maintained | v4.y.z | sha-<commit>, 4.x, main |
next | the next major, when one is being built | vN.0.0-rc.M | sha-<commit>, next |
Every release is a git tag on its line plus a GitHub release with notes, cut automatically on green CI. There is no npm package: an installation pins a commit, and the tag says which commits are releases. 4.x was cut from main at the last commit before 5.0. 6.0, 7.0 and 8.0 were released from main with no 5.x, 6.x or 7.x branch, so an installation stays on an earlier major by pinning its last tag: v5.54.0 for 5.x, the last v6.y.z tag for 6.x, and v7.21.0 for 7.x.
8.0.0 is a breaking release. Schedules and events live only in automations, on a named clock, and a mission's result goes out when its check finishes. Migration 0220 runs with the deploy; run workspace:apply right after it, then move each workspace repo to version: 2 with npm run migrate:automations -w @vocion/core -- <workspace> --write once that environment serves 8.0.0. See Missions, workflows and schedules.
The release v7.3.0 on main added decks as a client deliverable beside documents (Decks and docs). Read its release notes for migrations before you pin it.
Pin a release
- A vocion-core submodule:
git -C vocion-core fetch --tags && git -C vocion-core checkout v8.y.z, then commit the submodule. - vocion-stack:
core_ref = "v8.y.z"(a branch is rejected). - The runner image:
VOCION_RUNNER_IMAGE=ghcr.io/vocion/vocion-runner:sha-<that commit>. Whatever moves the app pin moves the runner pin in the same commit.
Upgrade
- Read the release notes between your tag and the new one.
- Move the pin (app and runner).
- Deploy. Migrations run before the new app starts; on vocion-stack the deploy does it, elsewhere run
npm run db:migrateorinfra/aws/apply-migrations.sh. - Re-apply workspaces if the base pack or plugins you use changed:
npm run workspace:apply -- <path> --project <slug>.
Roll back
Deploy the previous tag. Migrations only move forward and are written expand-then-contract, so the previous release runs on the newer schema. The 5.0 migrations are additive, so returning to a 4.x pin works without a restore. The 6.x migrations (0211_routines, 0212_routine_saved_inputs) are additive too, so a 5.x pin works on them. 7.0 adds no migration, so returning to a 6.x pin needs nothing. 8.0's migration 0220 backs up every schedule before it changes it: to return to a 7.x pin, deploy it, run workspace:apply, and restore the backed-up schedules with the SQL in the release's upgrade guide (docs/deployment/v8.0.0-when-lives-in-automations.md). A workspace repo already moved to version: 2 must go back to its pre-codemod commit first, because 7.x refuses version 2.
Bump automation
A bot follows what it is pointed at. Prefer a release over a branch head:
latest— the newest release on any line (the current major)latest-4— the newest 4.x release- a branch (
main,4.x,next) — every commit that lands, released or not
A bot that follows main or latest moves an installation to 7.x on its next run. To stay on 6.x, pin the last v6.y.z tag; on 5.x, a v5.y.z tag. To stay on 4.x, see Migrating to 5.0.