Skip to content

Commit a9da1b7

Browse files
authored
revert publish logs (#7298)
1 parent 60ff98d commit a9da1b7

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

scripts/ci/notify-test-result.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ async function notifyTestResults() {
111111
req.end();
112112
});
113113

114-
return Promise.all([chatPromise, logPromise]);
114+
return Promise.all([chatPromise, logPromise]).catch(e => {
115+
console.error(e);
116+
});
115117
}
116118

117119
notifyTestResults();

scripts/release/utils/publish.ts

+1-10
Original file line numberDiff line numberDiff line change
@@ -135,16 +135,7 @@ async function publishPackageInCI(
135135
}" >> ~/.npmrc`
136136
);
137137

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 });
148139
} catch (err) {
149140
throw err;
150141
}

0 commit comments

Comments
 (0)