ci(release): give release paths a code owner and push version bumps with a deploy key

Merged
TH
4h ago
+131-10

Summary

These are the prerequisites for a main/0.22 branch ruleset that replaces the release environment reviewer.

  • .github/CODEOWNERS: @thymikee owns .github/, scripts/release-* and scripts/*android-helper*. The ruleset requires code-owner review and 0 other approvals, so other PRs merge as before. Build stays the known exception until #5410.
  • mark-released now has two jobs. prepare-next-version runs with no secrets and uploads a -U0 version patch. mark-released holds a deploy key that only the release environment has, and it runs no repository code. It accepts only "version" lines set to the computed -dev version, in package.json, packages/*/package.json or server.json. If main has already moved, it exits cleanly. The commit message carries [skip ci], because deploy-key pushes start workflows and GITHUB_TOKEN pushes did not.
  • docs/agents/pull-requests.md: owner-authored release PRs merge with the admin bypass, and the PR records the reason.

Rollout

  1. Admin: create the write deploy key and the RELEASE_PUSH_DEPLOY_KEY secret in release.
  2. Merge this PR, and add CODEOWNERS to 0.22.
  3. Admin: apply the ruleset.
  4. Merge #5410.
  5. Admin: drop the release reviewer and allow only main and v*.

Validation

  • I ran the validator by hand: it accepts the real 0.21.46 bump and rejects a wrong version, an injected field, a mode change, a renamed target and mismatched headers. git apply --unidiff-zero applies the accepted patch.
  • The release workflow tests and the guidance budget check pass.
  • The stable-only jobs first run on the next tag.