Skip to content

Commit

Permalink
chore(ci): improve publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Aug 14, 2022
1 parent c86ba42 commit fa7c2a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ async function main() {
publicArgs.push(`--tag`, releaseTag)
}

await exec(`cd ${dirPath} && npm ${publicArgs.join(' ')}`)
const { stdout, stderr } = await exec(`cd ${dirPath} && npm ${publicArgs.join(' ')}`)
console.log('stdout:', stdout)
console.log('stderr:', stderr)
console.log()
}

Expand Down

0 comments on commit fa7c2a9

Please sign in to comment.