File tree 2 files changed +4
-11
lines changed
2 files changed +4
-11
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,9 @@ async function notifyTestResults() {
111
111
req . end ( ) ;
112
112
} ) ;
113
113
114
- return Promise . all ( [ chatPromise , logPromise ] ) ;
114
+ return Promise . all ( [ chatPromise , logPromise ] ) . catch ( e => {
115
+ console . error ( e ) ;
116
+ } ) ;
115
117
}
116
118
117
119
notifyTestResults ( ) ;
Original file line number Diff line number Diff line change @@ -135,16 +135,7 @@ async function publishPackageInCI(
135
135
} " >> ~/.npmrc`
136
136
) ;
137
137
138
- const spawnPromise = spawn ( 'npm' , args , { cwd : path } ) ;
139
- const childProcess = spawnPromise . childProcess ;
140
- childProcess . stdout ?. on ( 'data' , function ( data ) {
141
- console . log ( `[publishing ${ pkg } ] stdout: ` , data . toString ( ) ) ;
142
- } ) ;
143
- childProcess . stderr ?. on ( 'data' , function ( data ) {
144
- console . log ( `[publishing ${ pkg } ] stderr: ` , data . toString ( ) ) ;
145
- } ) ;
146
- await spawnPromise ;
147
- return spawnPromise ;
138
+ return spawn ( 'npm' , args , { cwd : path } ) ;
148
139
} catch ( err ) {
149
140
throw err ;
150
141
}
You can’t perform that action at this time.
0 commit comments