Repository navigation
fix(release): take the previous version from tags that exist - #658
Conversation
release.ts read the previous version from the CHANGELOG [Unreleased] compare link, and release-notes.ts from the next heading down. A release that failed after its commit reached main (0.65.0 CI, 0.65.1 Publish) left a heading and link for a tag that never existed. The next release then failed on git log v0.65.0..HEAD, and Publish failed with "tag v0.65.0 is not in this clone". Recovery needed a hand-edited link (#653) and an extra patch release (0.65.2). release.ts now uses the linked version only when its tag exists, else the newest v* tag below the new version. release-notes.ts walks the headings below the section to the first with a tag. Rejected: a CHANGELOG-only fix, which leaves the next failed release to break the same way. Validation: release-notes.ts 0.65.1 now gives "Full diff v0.64.0...v0.65.1" (it exited 1 before). release.ts --dry-run with the link set to nonexistent v0.65.9 resolves the previous version to 0.65.2. bun run typecheck passes. Closes #657
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Closes #657. Evidence is in the commit body.
Summary by CodeRabbit