Skip to content

Commit

Permalink
chore: correct tag name (#8446)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Aug 9, 2024
1 parent e4a3cdb commit 9572412
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,9 @@ function makeTag(version: string): string {
return '--tag next --pre-id rc';
}

const baseLatestTag = getAllTags('@taiga-ui/core').latest;
const currentMajor = parseVersion(version).major;
const latestOrLTS =
parseVersion(baseLatestTag).major === currentMajor
? 'latest'
: `v${currentMajor}-lts`;
const latestMajor = parseVersion(getAllTags('@taiga-ui/core').latest).major;
const latestOrLTS = currentMajor >= latestMajor ? 'latest' : `v${currentMajor}-lts`;

return `--tag ${latestOrLTS}`;
}

0 comments on commit 9572412

Please sign in to comment.