Skip to content

Commit

Permalink
Remove version validattion temp
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 23, 2022
1 parent 876c297 commit 7f74981
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/release/steps/validate-new-version.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import chalk from "chalk";
// import chalk from "chalk";
import semver from "semver";

export default function validateNewVersion({ version, previousVersion }) {
Expand All @@ -7,8 +7,7 @@ export default function validateNewVersion({ version, previousVersion }) {
}

if (!semver.gt(version, previousVersion)) {
throw new Error(
`Version ${chalk.yellow(version)} has already been published`
);
throw new Error();
// `Version ${chalk.yellow(version)} has already been published`
}
}

0 comments on commit 7f74981

Please sign in to comment.