workflow: use pnpm publish during release

This commit is contained in:
Evan You 2023-05-08 16:51:50 +08:00
parent 847658b7a2
commit a11599449e
1 changed files with 1 additions and 3 deletions

View File

@ -347,9 +347,7 @@ async function publishPackage(pkgName, version) {
step(`Publishing ${pkgName}...`) step(`Publishing ${pkgName}...`)
try { try {
await run( await run(
// note: use of yarn is intentional here as we rely on its publishing 'pnpm',
// behavior.
'npm',
[ [
'publish', 'publish',
...(releaseTag ? ['--tag', releaseTag] : []), ...(releaseTag ? ['--tag', releaseTag] : []),