From 9572412502357bae91734b032c6541da2cd9baca Mon Sep 17 00:00:00 2001 From: Maksim Ivanov Date: Fri, 9 Aug 2024 17:04:21 +0300 Subject: [PATCH] chore: correct tag name (#8446) --- scripts/publish.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/publish.ts b/scripts/publish.ts index f214a97b0d0b..34dbd09e13ee 100644 --- a/scripts/publish.ts +++ b/scripts/publish.ts @@ -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}`; }