Skip to content

Commit

Permalink
Export tagExists function
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeGinnivan committed Mar 3, 2022
1 parent 59971f1 commit 7e4af7f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/git/src/index.ts
Expand Up @@ -268,11 +268,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 7e4af7f

Please sign in to comment.