build(release): only log actually publisehd packages

This commit is contained in:
Evan You 2020-01-02 18:27:07 -05:00
parent 1bb1271b5e
commit 15cccad09f

View File

@ -115,7 +115,6 @@ async function main() {
step('\nPublishing packages...') step('\nPublishing packages...')
const releaseTag = semver.prerelease(targetVersion)[0] || 'latest' const releaseTag = semver.prerelease(targetVersion)[0] || 'latest'
for (const pkg of packages) { for (const pkg of packages) {
step(`Publishing ${pkg}...`)
await publishPackage(pkg, targetVersion, releaseTag, runIfNotDry) await publishPackage(pkg, targetVersion, releaseTag, runIfNotDry)
} }
@ -183,6 +182,8 @@ async function publishPackage(pkgName, version, releaseTag, runIfNotDry) {
if (pkg.private) { if (pkg.private) {
return return
} }
step(`Publishing ${pkg}...`)
try { try {
await runIfNotDry( await runIfNotDry(
'yarn', 'yarn',