You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(git): filter non-semver tags, check staged index, and verify tag commit on retry
- Filter out non-semver tags (e.g. pkg@latest) before calling semver.rcompare
in getMostRecentPackageTag and getMostRecentPackageStableTag; stray tags
previously caused semver.rcompare to throw a TypeError
- In commitChanges, replace the isWorkingDirectoryClean check (which inspects
the whole worktree including untracked files) with git diff --cached
--name-only so we only proceed to git commit when something is actually staged
- In createPackageTag, verify the existing local tag resolves to HEAD before
treating it as an idempotent hit; a tag pointing to a different commit now
falls through and lets git proceed rather than silently succeeding
- Add regression test: getMostRecentPackageTag ignores non-semver tags like
@latest and returns the correct highest semver tag
0 commit comments