From caa3c9cd6af7978bec685248c9d3573bea509440 Mon Sep 17 00:00:00 2001 From: Christina Holland Date: Fri, 12 May 2023 10:28:02 -0700 Subject: [PATCH] revert publish logs --- scripts/ci/notify-test-result.js | 4 +++- scripts/release/utils/publish.ts | 11 +---------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/scripts/ci/notify-test-result.js b/scripts/ci/notify-test-result.js index 17be7a7bce7..1e5edb2707a 100644 --- a/scripts/ci/notify-test-result.js +++ b/scripts/ci/notify-test-result.js @@ -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(); diff --git a/scripts/release/utils/publish.ts b/scripts/release/utils/publish.ts index 6deb645f654..2ff00b2a104 100644 --- a/scripts/release/utils/publish.ts +++ b/scripts/release/utils/publish.ts @@ -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; }