Skip to content

Release playbooks

Branches, not tags (ADR-0027). development deploys DEV on every push. To promote to STG, open a pull request development → staging, let CI gate pass, and merge it with a merge commit (never squash or rebase a promotion); Railway deploys the merge. PRD, once provisioned, deploys main from a promotion PR staging → main whose deploy job waits on the production GitHub environment’s required reviewer. Hotfixes take the same road, expedited; a bad release is a revert PR on that branch plus the same revert on development. Details and the rejected tag model: deploy/README.md § DNS, deploys, and CI.

Run Svelte checks, confirm generated DB types are up to date (db:codegen), push to development (Railway’s GitHub integration auto-deploys), then verify home, property search, auth modal, portal, and dashboard role gate. PUBLIC_API_URL is build-time, so a change requires a svelte-web rebuild.

Nothing to run by hand. A PR touching packages/database/ gets the Migrations CI job: the full chain on a fresh postgis/postgis:16-3.5, twice (the second run must be a no-op), unique NNNN prefixes, and a kysely-codegen diff against the committed src/generated/db.ts. On merge, api and worker apply the chain as their Railway pre-deploy command before the new containers start; a failure fails that deploy and the previous deployment keeps serving. Verify by reading the pre-deploy step in the deployment log ([migrate] target postgres.railway.internal:5432/…, then the applied names or Migrations up to date.). Because svelte-web deploys independently, migrations must stay backward compatible with the release before them — see deploy/README.md § Database migrations.

Run API type checks, verify /api/auth/* and /api/trpc/* health through the deployed origin, then smoke-test mobile sign-in and one protected tRPC query.

Run worker type checks, verify Valkey connection, Bull Board auth, queue suffix, and one harmless repeatable job path in the target environment.

Run bun run docs:check, push to development (Railway’s GitHub integration auto-deploys), then verify search, generated API reference, generated Knock workflows, and workspace inventory.

Vendor configuration is code: knock/ (Knock CLI source), the Stripe catalog in @repo/validation plan-rules plus STRIPE_EVENT_ALLOWLIST and scripts/vendor-sync/stripe-portal.ts, and stream/*.json. CI’s vendor-sync job applies all three on every push to development once CI gate is green (Scripts → Vendor sync) — check that job is green on the merge commit before verifying anything in a dashboard. Then verify one Knock workflow per changed channel and confirm generated workflow docs reflect the payload and trigger sites; the Stripe and GetStream steps log ok / no changes when nothing moved. Promoting Knock commits to Production stays manual (knock.yml).

Use the platform CI jobs and Firebase/TestFlight/Play internal distribution. Always validate contract fixtures, app links, auth, one tRPC query, and crash reporting before wider rollout.