ci: 优化版本日志输出

This commit is contained in:
winixt 2022-08-17 10:53:59 +08:00
parent b57c8e2108
commit 8a55f163f4

View File

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