chore: pass dryRun arg correctly (#16333)

* chore: pass dryRun arg correctly

* no log
This commit is contained in:
Shelley Vohr 2019-01-08 18:09:42 -08:00 committed by GitHub
parent 45baaeaf2c
commit b4299a2872
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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()