ci(release): give release paths a code owner and push version bumps with a deploy key
Merged
TH
4h ago+131+131+012345678901234567890123456789-10-10-01234567890123456789
Summary
These are the prerequisites for a main/0.22 branch ruleset that replaces the release environment reviewer.
.github/CODEOWNERS:@thymikeeowns.github/,scripts/release-*andscripts/*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-releasednow has two jobs.prepare-next-versionruns with no secrets and uploads a-U0version patch.mark-releasedholds a deploy key that only thereleaseenvironment has, and it runs no repository code. It accepts only"version"lines set to the computed-devversion, inpackage.json,packages/*/package.jsonorserver.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
- Admin: create the write deploy key and the
RELEASE_PUSH_DEPLOY_KEYsecret inrelease. - Merge this PR, and add CODEOWNERS to
0.22. - Admin: apply the ruleset.
- Merge #5410.
- Admin: drop the
releasereviewer and allow onlymainandv*.
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-zeroapplies the accepted patch. - The release workflow tests and the guidance budget check pass.
- The stable-only jobs first run on the next tag.