File tree Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Expand file tree Collapse file tree 1 file changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -257,7 +257,11 @@ async function handler({
257
257
258
258
logger . log ( ) ;
259
259
logger . log ( `Updating version to ${ newVersion } ...` ) ;
260
- await exec ( `yarn version --new-version ${ newVersion } ` ) ;
260
+ if ( isExperimental ) {
261
+ await exec ( `yarn version --no-git-tag-version --new-version ${ newVersion } ` ) ;
262
+ } else {
263
+ await exec ( `yarn version --new-version ${ newVersion } ` ) ;
264
+ }
261
265
logger . success ( 'Version updated successfully' ) ;
262
266
263
267
logger . log ( ) ;
@@ -308,10 +312,20 @@ async function handler({
308
312
process . exit ( EXIT_CODES . SUCCESS ) ;
309
313
}
310
314
311
- logger . log ( ) ;
312
- logger . log ( `Pushing changes to Github...` ) ;
313
- await exec ( gitCommand ) ;
314
- logger . log ( `Changes pushed successfully` ) ;
315
+ if ( isExperimental ) {
316
+ logger . log ( ) ;
317
+ logger . log ( `Experimental release: Skipping push to Github` ) ;
318
+
319
+ // Reset the version back to the local version
320
+ await exec (
321
+ `yarn version --no-git-tag-version --new-version ${ localVersion } `
322
+ ) ;
323
+ } else {
324
+ logger . log ( ) ;
325
+ logger . log ( `Pushing changes to Github...` ) ;
326
+ await exec ( gitCommand ) ;
327
+ logger . log ( `Changes pushed successfully` ) ;
328
+ }
315
329
316
330
logger . log ( ) ;
317
331
logger . success ( `HubSpot CLI version ${ newVersion } published successfully` ) ;
You can’t perform that action at this time.
0 commit comments