Commit 3a1b640
Automatically unlock main branch after release publishes
Adds a final step in the changeset-release job that flips the lockBranch
field on the main branch protection rule back to false once a release
publishes successfully. The pre-release lock is still applied manually;
only the unlock is automated for now.
The step requires a RELEASE_ADMIN_TOKEN secret (PAT or GitHub App
installation token with admin permissions on branch protection). If the
secret is not configured, the step warns and skips so it never blocks a
release.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 854615f commit 3a1b640
1 file changed
Lines changed: 35 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
215 | 250 | | |
216 | 251 | | |
217 | 252 | | |
| |||
0 commit comments