Releases
How a version is cut, deployed and announced.
One version for the whole monorepo, tagged vX.Y.Z, starting at 0.1.0.
Flow
- every merge to
maindeploys staging (staging.yml, afterciis green). It never deploys production by itself - once staging proves the new commit live (api
/healthand web, dashboard and docs/api/versionreport its sha),staging.ymlcallsrelease.yml. release-please opens or updates one release PR,chore(main): release X.Y.Z, with the next version inpackage.jsonand.release-please-manifest.jsonand the notes inCHANGELOG.md - to ship, check staging, then squash merge the release PR (subject is the PR title, empty body)
ciruns on the merge commit, staging deploys it, then release-please tagsvX.Y.Zon exactly that commit, creates the GitHub release, deploys production from the tag and starts thelanguinetranslations- optional: run the
release emailworkflow by hand. It sends the notes of the GitHub release.dry_runistrueby default and only prints the email. Setting it tofalsesends a Resend broadcast toRESEND_AUDIENCE_ID. It never runs by itself and only repo admins and maintainers can run it
Do not create tags or publish releases by hand: a release published in the GitHub ui deploys nothing and confuses the next version.
What goes into a release
PR titles become the commit subjects on main, so they follow type(scope): subject (the pr hygiene check fails otherwise).
| Title | Below 1.0 | In the changelog |
|---|---|---|
feat(scope): ... | minor | Features |
fix(scope): ... | patch | Bug Fixes |
perf(scope): ... | patch | Performance Improvements |
feat(scope)!: ... | minor | Breaking changes |
chore, refactor, docs, test, ci, style, build | no release on their own | hidden |
Hidden types still ship, with the next release. If only those are waiting and they must reach production (an infra or dependency change), merge a PR whose squash body is Release-As: 0.4.2 with the version you want. The same footer cuts 1.0.0.
To fix the notes of an already merged PR, add a BEGIN_COMMIT_OVERRIDE / END_COMMIT_OVERRIDE block with the right type(scope): subject lines to its description, the next run picks it up.
Checks on the release PR
The main ruleset needs ci, e2e, labels and pr hygiene on the release PR too. labels and the issue link are skipped for it, and it gets no preview.
GitHub starts no workflow for a PR opened or updated with the workflow token. Either:
- set the repo secret
RELEASE_PLEASE_TOKEN, a fine grained token for this repo with contents, pull requests and issues write. The checks then run on their own - or, without it, close and reopen the release PR right before merging. Reopening starts the checks
The repo setting Allow GitHub Actions to create and approve pull requests (Settings, Actions, General) must be on when there is no RELEASE_PLEASE_TOKEN.
When a release does not happen
The tag waits until the release commit passed ci and staging runs it or a newer commit. The release please job shows a release waits warning otherwise. If ci failed on the release commit, re-run it from the Actions tab: its success deploys staging and releases. If the production deploy failed after the tag, redeploy the tag (below).
Milestones and versions
| Version | Milestone |
|---|---|
v0.1.0 | foundation and hotel core |
v0.2.0 | messaging |
v0.3.0 | feedback and dashboard |
v1.0.0 | pilot launch |
Rollback and redeploy
Run the release workflow by hand (Actions tab) with tag:
- an older tag, for example
v0.4.0, to roll back - the tag production already runs, to redeploy it (after changing secrets, or when a deploy failed)
Nothing is released, it points the production compose service at that tag and redeploys. Database migrations are forward only: restore from a backup if a migration has to be undone.
If the GitHub release was created but the job failed before production deployed, run the release workflow by hand with that tag.