Added --skip-install parameter to backstage-cli versions:bump

Signed-off-by: Brett Wright <brett.wright@nine.com.au>
This commit is contained in:
Brett Wright
2022-12-16 08:34:09 +11:00
parent 5b0701ea1b
commit 8e0358e18d
4 changed files with 14 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/cli': patch
---
Added --skip-install parameter to backstage-cli versions:bump
+1
View File
@@ -569,6 +569,7 @@ Usage: backstage-cli versions:bump [options]
Options:
--pattern <glob>
--release <version|next|main>
--skip-install
-h, --help
```
+1
View File
@@ -365,6 +365,7 @@ export function registerCommands(program: Command) {
'Bump to a specific Backstage release line or version',
'main',
)
.option('--skip-install', 'Skips yarn install step')
.description('Bump Backstage packages to the latest versions')
.action(lazy(() => import('./versions/bump').then(m => m.default)));
+7 -1
View File
@@ -255,7 +255,13 @@ export default async (opts: OptionValues) => {
);
}
await runYarnInstall();
if (opts.skipInstall === undefined) {
await runYarnInstall();
} else {
console.log();
console.log(chalk.yellow(`Skipping yarn install`));
}
if (breakingUpdates.size > 0) {
console.log();