Skip to content

Commit

Permalink
revert publish logs (#7298)
Browse files Browse the repository at this point in the history
  • Loading branch information
hsubox76 committed May 15, 2023
1 parent 60ff98d commit a9da1b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
4 changes: 3 additions & 1 deletion scripts/ci/notify-test-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,9 @@ async function notifyTestResults() {
req.end();
});

return Promise.all([chatPromise, logPromise]);
return Promise.all([chatPromise, logPromise]).catch(e => {
console.error(e);
});
}

notifyTestResults();
11 changes: 1 addition & 10 deletions scripts/release/utils/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,16 +135,7 @@ async function publishPackageInCI(
}" >> ~/.npmrc`
);

const spawnPromise = spawn('npm', args, { cwd: path });
const childProcess = spawnPromise.childProcess;
childProcess.stdout?.on('data', function (data) {
console.log(`[publishing ${pkg}] stdout: `, data.toString());
});
childProcess.stderr?.on('data', function (data) {
console.log(`[publishing ${pkg}] stderr: `, data.toString());
});
await spawnPromise;
return spawnPromise;
return spawn('npm', args, { cwd: path });
} catch (err) {
throw err;
}
Expand Down

0 comments on commit a9da1b7

Please sign in to comment.