ci: 优化版本日志输出

This commit is contained in:
winixt 2022-08-17 10:53:59 +08:00
parent 6f2d79c8ca
commit fa014fdfe7

View File

@ -43,7 +43,7 @@ async function publishPackage(pkg, runIfNotDry) {
stdio: 'pipe',
},
);
console.log(chalk.green(`Successfully published ${pkg.name}@${pkg.newVersion}`));
console.log('Successfully published :', chalk.green(`${pkg.name}@${pkg.newVersion}`));
} catch (e) {
if (e.stderr.match(/previously published/)) {
console.log(chalk.red(`Skipping already published: ${pkg.name}`));