Skip to content

Commit db2f916

Browse files
jpicklykclaude
andcommitted
ci: verify CI green on main before pushing release tag
Step 13 of prepare-release now checks the test workflow status on main before tagging. If tests are in progress it waits; if they failed it stops and alerts the user. Closes #117d2518 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 1ac114c commit db2f916

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.claude/skills/prepare-release.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,27 @@ After the user confirms the PR is merged:
372372
```bash
373373
git checkout main
374374
git pull origin main --tags
375+
```
376+
377+
**Verify CI is green before tagging.** The test workflow runs on every push to `main`
378+
releasing before it passes risks tagging broken code.
379+
380+
```bash
381+
gh run list --workflow=test.yml --branch=main --limit 1 --json status,conclusion,headSha
382+
```
383+
384+
Check the result:
385+
- If `conclusion` is `"success"` and `headSha` matches `HEAD` on main → proceed to tag
386+
- If `status` is `"in_progress"` or `"queued"` → wait and re-check:
387+
```bash
388+
gh run watch --exit-status
389+
```
390+
- If `conclusion` is `"failure"`**stop**. Do not tag. Inform the user that tests
391+
failed on main and the release cannot proceed until they pass.
392+
393+
After CI is confirmed green:
394+
395+
```bash
375396
git tag <TAG>
376397
git push origin <TAG>
377398
```

0 commit comments

Comments
 (0)