diff --git a/scripts/release.js b/scripts/release.js index 33d1e73e08..80873b4376 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -95,12 +95,8 @@ const release = async () => { } } - const releaseType = semver.prerelease(curVersion) - ? 'prerelease' - : semver.diff(curVersion, version) - let distTag = 'latest' - if (releaseType.startsWith('pre')) { + if (bump === 'prerelease' || semver.prerelease(version)) { distTag = 'next' }