Repository navigation
Tags
Tags
fix(ci): let release notes survive a history with no earlier tag generate-release-notes.ts finds the previous release with `git describe --tags --abbrev=0 HEAD^` and aborts when that returns nothing. After the history rewrite nothing it can return: v3.1.0 and every tag before it point into the commit graph that now lives only on the legacy branch, so none of them is an ancestor of main. The 27.0.0 packages were already on npm by the time this ran, leaving a published release with no GitHub Release and no notes. It now degrades instead: no reachable predecessor means notes without a changelog, which is the honest description of a first release from a rebuilt history. getPreviousTag also rejects the tag being released. That one lands on HEAD^ whenever the version-bump commit is tagged before notes are generated, and treating it as the predecessor produced a v27.0.0...v27.0.0 comparison — which is how this reproduced locally as a success while failing in CI.