File tree 1 file changed +17
-6
lines changed
1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -154,11 +154,16 @@ const { argv } = require('yargs');
154
154
await updateWorkspaceVersions ( versions , argv . canary ) ;
155
155
156
156
/**
157
- * Clean install dependencies
157
+ * Users can pass --skipRebuild to skip the rebuild step
158
158
*/
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
+ }
162
167
163
168
/**
164
169
* Don't do the following for canary releases:
@@ -171,8 +176,14 @@ const { argv } = require('yargs');
171
176
/**
172
177
* Ensure all tests are passing
173
178
*/
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
+ }
176
187
177
188
const { readyToPush } = await prompt ( validateReadyToPush ) ;
178
189
if ( ! readyToPush ) throw new Error ( 'Push Check Failed' ) ;
You can’t perform that action at this time.
0 commit comments