Commit 0884f5e
committed
ci: let the release pull request merge itself on a cadence switch
Changesets keeps one release pull request open and rewrites it as changesets
land, so how often that pull request is merged is what decides the version
sequence. Left to accumulate it collapses a backlog into a single bump — which
is how nineteen changesets became one version and the numbers in between never
existed.
`AUTO_MERGE_RELEASE_PR` picks the cadence. Set to `true`, the release pull
request merges itself once its required checks pass, so one merge to main is
one release and the version tracks each change. Unset, nothing changes and a
maintainer merges it when a release is wanted.
This is not a blanket auto-merge: it only ever targets the changesets-authored
branch, the repository still requires its status checks, and a major bump is
gated on the pull request that introduces the changeset — so an unattended
release cannot rename the major version on its own. The step never fails the
run, because a version pull request left open costs a manual merge while a
failure here would block npm, the Marketplace and the CDN behind it.
CONTRIBUTING now states the bump levels and both cadences, so the version
sequence is a documented choice rather than a side effect of merge timing.1 parent 496169d commit 0884f5e
2 files changed
Lines changed: 54 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
183 | 216 | | |
184 | 217 | | |
185 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
83 | 104 | | |
84 | 105 | | |
85 | 106 | | |
| |||
0 commit comments