We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6972de6 + 9c6f972 commit 6ee02eaCopy full SHA for 6ee02ea
scripts/release/utils/publish.ts
@@ -135,7 +135,16 @@ async function publishPackageInCI(
135
}" >> ~/.npmrc`
136
);
137
138
- return spawn('npm', args, { cwd: path });
+ 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;
148
} catch (err) {
149
throw err;
150
}
0 commit comments