Skip to content

Commit

Permalink
fix: 修复release输出文字
Browse files Browse the repository at this point in the history
  • Loading branch information
xuasir committed Mar 5, 2021
1 parent 979ea2a commit 54d1c0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/preset-built-in/src/plugin/command/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ async function publish(targets: string[], ops: IReleaseOps) {
}

// 6. push and tag
logger.info(stepColor(`Push and Tag...`))
const tag = ops?.tag || generateTag()
await [
{
Expand Down Expand Up @@ -307,8 +308,8 @@ async function workForPublish(pkgDir: string, ops: IReleaseOps) {
process.chdir(root)
await runCmd('npm', ['publish', '--access', 'public'], {
start: `publish ${pkgname} start`,
succeed: `publish ${pkgname} start`,
failed: `publish ${pkgname} start`
succeed: `publish ${pkgname} succeed`,
failed: `publish ${pkgname} failed`
})
process.chdir(saveCwd)
}
Expand Down

0 comments on commit 54d1c0f

Please sign in to comment.