Commit b479001 1 parent fa9e478 commit b479001 Copy full SHA for b479001
File tree 2 files changed +9
-4
lines changed
2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -46,4 +46,7 @@ export function bumpPackageVersion() {
46
46
} ) ;
47
47
}
48
48
49
- await bumpPackageVersion ( ) ;
49
+ await bumpPackageVersion ( ) . orElse ( ( error ) => {
50
+ console . error ( `Unable to bump version. Reason: ${ error } ` ) ;
51
+ process . exit ( 1 ) ;
52
+ } ) ;
Original file line number Diff line number Diff line change @@ -104,6 +104,8 @@ await readJsonFile<IPackageJson>(packageFile)
104
104
)
105
105
. andThrough ( ( metadata ) => makeCommit ( metadata . version as string ) )
106
106
. andThen ( ( metadata ) => createGitTagOfNewVersion ( metadata . version as string ) )
107
- . andTee ( ( ) =>
108
- console . log ( "Release is ready. Run `git push --follow-tags`" ) ,
109
- ) ;
107
+ . andTee ( ( ) => console . log ( "Release is ready. Run `git push --follow-tags`" ) )
108
+ . orElse ( ( error ) => {
109
+ console . error ( `Unable to make release. Reason: ${ error } ` ) ;
110
+ process . exit ( 1 ) ;
111
+ } ) ;
You can’t perform that action at this time.
0 commit comments