Also skip prompt when publishing for real

This commit is contained in:
Fabio Berger 2018-07-25 22:34:26 +02:00
parent 1b1733ce7c
commit d836b0f815

View File

@ -184,9 +184,9 @@ async function lernaPublishAsync(packageToNextVersion: { [name: string]: string
}).join(',');
let lernaPublishCmd = `node ${constants.lernaExecutable} publish --cdVersions=${packageVersionString} --registry=${
configs.NPM_REGISTRY_URL
}`;
} --yes`;
if (configs.IS_LOCAL_PUBLISH) {
lernaPublishCmd += ` --skip-git --yes`;
lernaPublishCmd += ` --skip-git`;
}
utils.log('Lerna is publishing...');
await execAsync(lernaPublishCmd, { cwd: constants.monorepoRootPath });