Skip to content

Commit

Permalink
fix: do not force push a tag called v9
Browse files Browse the repository at this point in the history
  • Loading branch information
kanadgupta committed Dec 12, 2024
1 parent 9239846 commit df27049
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/set-major-version-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ async function setMajorVersionTag() {

const majorTag = `v${parsedVersion.major}`;

// we maintain a v9 branch, this just ensures that we don't attempt to also push a tag with the same ref
if (majorTag === 'v9') {
// eslint-disable-next-line no-console
console.warn('A `v9` ref already exists, not setting major version tag');
return;
}

await runGitCmd(['tag', majorTag, '--force', '--message', `Top-level tag pointing to ${parsedVersion.version}`]);

const args = process.argv.slice(2);
Expand Down

0 comments on commit df27049

Please sign in to comment.