Fix for pre-release tags on current commit

This commit is contained in:
Paul Hatcherian 2023-01-10 17:11:54 -06:00
parent 346a6f2b12
commit 8b3b8f89c6
5 changed files with 137 additions and 3 deletions

View file

@ -45,6 +45,7 @@ class DefaultLastReleaseResolver {
return __awaiter(this, void 0, void 0, function* () {
const releasePattern = tagFormatter.GetPattern();
let currentTag = (yield (0, CommandRunner_1.cmd)(`git tag --points-at ${current} ${releasePattern}`)).trim();
currentTag = tagFormatter.IsValid(currentTag) ? currentTag : '';
const [currentMajor, currentMinor, currentPatch] = !!currentTag ? tagFormatter.Parse(currentTag) : [null, null, null];
let tag = '';
try {