Skip to content

Commit

Permalink
Handle duplicate tags as not an error (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattMufson authored Jan 9, 2025
1 parent 8f2d1a9 commit 2f2d9b8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,14 @@ const main = async () => {
);
}

execSync(`git tag -a v${version} -m "Release v${version}"`, {
stdio: 'inherit',
});
try {
execSync(`git tag -a v${version} -m "Release v${version}"`, {
stdio: 'inherit',
});
} catch {
console.log('Tag already exists. Skipping...');
process.exit(0);
}

execSync(`git push origin v${version}`, {
stdio: 'inherit',
Expand Down

0 comments on commit 2f2d9b8

Please sign in to comment.