diff --git a/scripts/start-release.js b/scripts/start-release.js index f72df96d43e8f..9f6d1146a1f4d 100644 --- a/scripts/start-release.js +++ b/scripts/start-release.js @@ -55,7 +55,9 @@ async function main() { console.log(`Running pnpm release-${isCanary ? 'canary' : 'stable'}...`) const child = execa( isCanary - ? `pnpm lerna version preminor --preid canary --force-publish -y && pnpm release --pre --skip-questions --show-url` + ? `pnpm lerna version ${ + semverType === 'minor' ? 'preminor' : 'prerelease' + } --preid canary --force-publish -y && pnpm release --pre --skip-questions --show-url` : `pnpm lerna version ${semverType} --force-publish -y`, { stdio: 'pipe',