Skip to content

Commit

Permalink
fix(release): incorrect npm version check.
Browse files Browse the repository at this point in the history
  • Loading branch information
m0ksem committed Jul 29, 2022
1 parent f805fcc commit 233e707
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/deploy/release-script/release-script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ const runReleaseChecks = async (releaseConfig: ReleaseConfig, dryRun: boolean) =
showSleepCheck,
gitTag,
distTag,
version
} = releaseConfig

if (!dryRun && requiredBranch && branch !== requiredBranch) {
Expand All @@ -147,8 +148,8 @@ const runReleaseChecks = async (releaseConfig: ReleaseConfig, dryRun: boolean) =
console.log(chalk.red(`Tag ${gitTag} is already on upstream. You can remove it if it was by mistake.`))
return false
}
if (!await confirmNpmVersionAvailable(distTag)) {
console.log(chalk.red(`Version ${distTag} is already on NPM, you can bump version manually to fix that.`))
if (!await confirmNpmVersionAvailable(version)) {
console.log(chalk.red(`Version ${version} is already on NPM, you can bump version manually to fix that.`))
return false
}
try {
Expand Down

0 comments on commit 233e707

Please sign in to comment.