Skip to content

Commit 357e425

Browse files
committed
Add --skipRebuild and --skipTests flags
1 parent 49dcb25 commit 357e425

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

scripts/release/cli.js

+17-6
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,16 @@ const { argv } = require('yargs');
154154
await updateWorkspaceVersions(versions, argv.canary);
155155

156156
/**
157-
* Clean install dependencies
157+
* Users can pass --skipRebuild to skip the rebuild step
158158
*/
159-
console.log('\r\nVerifying Build');
160-
await cleanTree();
161-
await reinstallDeps();
159+
if (!argv.skipRebuild) {
160+
/**
161+
* Clean install dependencies
162+
*/
163+
console.log('\r\nVerifying Build');
164+
await cleanTree();
165+
await reinstallDeps();
166+
}
162167

163168
/**
164169
* Don't do the following for canary releases:
@@ -171,8 +176,14 @@ const { argv } = require('yargs');
171176
/**
172177
* Ensure all tests are passing
173178
*/
174-
await setupTestDeps();
175-
await runTests();
179+
180+
/**
181+
* Users can pass --skipTests to skip the testing step
182+
*/
183+
if (!argv.skipTests) {
184+
await setupTestDeps();
185+
await runTests();
186+
}
176187

177188
const { readyToPush } = await prompt(validateReadyToPush);
178189
if (!readyToPush) throw new Error('Push Check Failed');

0 commit comments

Comments
 (0)