Skip to content

Commit

Permalink
fix(scripts): check-version to allow distTags first time
Browse files Browse the repository at this point in the history
  • Loading branch information
karliatto committed May 7, 2024
1 parent de90dbe commit 9dfb2fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/scripts/check-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ if (PRODUCTION.find(b => branch.startsWith(b))) {
}
}

if (!semver.gt(version, npmVersion)) {
// When npmVersion is undefined it means that there was no previous release on that distTag so every version is valid.
if (npmVersion && !semver.gt(version, npmVersion)) {
throw new Error(`${version} is the same or lower than the npm registry version ${npmVersion}`);
}

0 comments on commit 9dfb2fe

Please sign in to comment.