Skip to content

Commit caa3c9c

Browse files
committed
revert publish logs
1 parent 9c6f972 commit caa3c9c

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

scripts/ci/notify-test-result.js

Lines changed: 3 additions & 1 deletion
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

Lines changed: 1 addition & 10 deletions
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)