chore: pass dryRun arg correctly (#16333)
* chore: pass dryRun arg correctly * no log
This commit is contained in:
parent
45baaeaf2c
commit
b4299a2872
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ async function getNewVersion (dryRun) {
|
||||||
}
|
}
|
||||||
const bumpScript = path.join(__dirname, 'bump-version.js')
|
const bumpScript = path.join(__dirname, 'bump-version.js')
|
||||||
const scriptArgs = ['node', bumpScript, `--bump=${bumpType}`]
|
const scriptArgs = ['node', bumpScript, `--bump=${bumpType}`]
|
||||||
if (dryRun) scriptArgs.push('--dry-run')
|
if (dryRun) scriptArgs.push('--dryRun')
|
||||||
try {
|
try {
|
||||||
let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'UTF-8' })
|
let bumpVersion = execSync(scriptArgs.join(' '), { encoding: 'UTF-8' })
|
||||||
bumpVersion = bumpVersion.substr(bumpVersion.indexOf(':') + 1).trim()
|
bumpVersion = bumpVersion.substr(bumpVersion.indexOf(':') + 1).trim()
|
||||||
|
|
Loading…
Reference in a new issue