diff --git a/script/prepare-release.js b/script/prepare-release.js index a74c1863a34a..9c89afd3b0f0 100755 --- a/script/prepare-release.js +++ b/script/prepare-release.js @@ -35,7 +35,7 @@ async function getNewVersion (dryRun) { } const bumpScript = path.join(__dirname, 'bump-version.js') const scriptArgs = ['node', bumpScript, `--bump=${bumpType}`] - if (dryRun) scriptArgs.push('--dry-run') + if (dryRun) scriptArgs.push('--dryRun') try { let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'UTF-8' }) bumpVersion = bumpVersion.substr(bumpVersion.indexOf(':') + 1).trim()