Skip to content

Commit

Permalink
fix: release没有await runCmd
Browse files Browse the repository at this point in the history
  • Loading branch information
xuasir committed Mar 5, 2021
1 parent e584f5f commit 3b421b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/preset-built-in/src/plugin/command/release.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ async function publish(targets: string[], ops: IReleaseOps) {
},
{
bin: 'git',
args: ['push', `refs/tags/${tag}`],
args: ['push', 'origin', `refs/tags/${tag}`],
message: {
start: 'push tag start',
succeed: 'push tag succeed',
Expand Down Expand Up @@ -305,7 +305,7 @@ async function workForPublish(pkgDir: string, ops: IReleaseOps) {
const pkgname = pkgdir2pkgname[pkgDir]
const saveCwd = process.cwd()
process.chdir(root)
runCmd('npm', ['publish', '--access', 'public'], {
await runCmd('npm', ['publish', '--access', 'public'], {
start: `publish ${pkgname} start`,
succeed: `publish ${pkgname} start`,
failed: `publish ${pkgname} start`
Expand Down

0 comments on commit 3b421b4

Please sign in to comment.