Skip to content

Commit 6ee02ea

Browse files
Merge master into release
2 parents 6972de6 + 9c6f972 commit 6ee02ea

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

scripts/release/utils/publish.ts

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

138-
return spawn('npm', args, { cwd: path });
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;
139148
} catch (err) {
140149
throw err;
141150
}

0 commit comments

Comments
 (0)