Skip to content

Commit

Permalink
Export tagExists function
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Apr 27, 2022
1 parent 933cf39 commit 25d4047
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/git/src/index.ts
Expand Up @@ -286,11 +286,10 @@ export async function getChangedPackagesSinceRef({
.filter((pkg, idx, packages) => packages.indexOf(pkg) === idx)
);
}
async function tagExists(tagStr: string) {

export async function tagExists(tagStr: string) {
const gitCmd = await spawn("git", ["tag", "-l", tagStr]);
const output = gitCmd.stdout.toString().trim();
const tagExists = !!output;
return tagExists;
}

tagExists,

0 comments on commit 25d4047

Please sign in to comment.