# Deploy
## When to use
When deploying a service to staging or production.
## Steps
1. Run `pnpm build` and confirm it succeeds
2. Run `pnpm test` — do not deploy if tests fail
3. For staging: push to the `staging` branch
4. For production: create a PR to the `release` branch
- Title format: `release: <service> <version>`
- Wait for CI to pass before merging
5. After merge, monitor Datadog dashboard "Service Health"
for 10 minutes before confirming the deploy is stable
## Notes
- Never force-push to `release`
- If a deploy needs to be rolled back, revert the merge commit
and push to `release` again