Skip to content

Commit c08dc96

Browse files
committed
docs: pin reviewed release commit before tagging
1 parent 0eb59aa commit c08dc96

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.roo/commands/release.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,22 +100,25 @@ mode: code
100100
```bash
101101
git switch main
102102
git pull origin main
103-
git rev-parse --short HEAD
103+
REVIEWED_SHA=$(git rev-parse HEAD)
104+
git rev-parse --short "$REVIEWED_SHA"
104105
```
105106
106107
- Review the merged release state before any publish step.
107108
- Confirm that `src/package.json`, `CHANGELOG.md`, `src/CHANGELOG.md`, and the Marketplace-facing `README.md` all reflect the intended release.
108109
- Check that the release PR checks passed and that the merged commit is the one you want to ship.
109-
- Share that review summary with the user and wait for explicit confirmation before creating the tag.
110+
- Share that review summary, including `REVIEWED_SHA`, with the user and wait for explicit confirmation before creating the tag.
110111
- Do not create the tag or trigger publishing until the user says to proceed.
111112
112113
13. Only after explicit confirmation, create the release tag on that reviewed `main` commit:
113114
114115
```bash
115-
git tag v[version]
116+
git tag v[version] "$REVIEWED_SHA"
116117
git push origin v[version]
117118
```
118119
120+
- If `main` advances after the review pause, keep using the pinned `REVIEWED_SHA` for the tag instead of silently tagging a newer commit.
121+
119122
14. The stable publish workflow runs from the `v[version]` tag.
120123
121124
- Do not create the tag before the release PR is merged.

0 commit comments

Comments
 (0)