preview. A run writes to production only when you ask for it, and only with an
approver:
environments: [production].
In CI
Put the production job behind a GitHub environment with required reviewers and pass the reviewer’s name asapproved-by. The complete workflow, including the step that reads the approver back, is in
CI with GitHub Actions.
Read next
- The rule and the environment filter: Environments in the plan format.
- A plan with preview and production lines: Examples.
- What agents must never do: Agents and MCP.
- Why production is never inferred: ADR 0012.