Skip to content

Commit

Permalink
add debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Dec 8, 2023
1 parent ee1a5f7 commit 6566c0b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/build/src/git/tags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,20 @@ export function getLatestDraftOrReleaseTagFromLog(
encoding: 'utf-8',
});

console.error({ gitTags });

const tagDetails = extractTags(
gitTags.stdout.split('\n'),
versionRestriction
);

console.error({ tagDetails });
const sortedTagsWithCommit = tagDetails.sort((t1, t2) => {
return -1 * semver.compare(t1.semverName, t2.semverName);
});

console.error({ sortedTagsWithCommit });

if (!sortedTagsWithCommit.length) {
return undefined;
}
Expand Down

0 comments on commit 6566c0b

Please sign in to comment.