Skip to content

Commit

Permalink
workflow: remove yarn usage in release script
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 8, 2023
1 parent e4a2d11 commit 32b91db
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,18 +346,16 @@ async function publishPackage(pkgName, version) {

step(`Publishing ${pkgName}...`)
try {
await runIfNotDry(
await run(
// note: use of yarn is intentional here as we rely on its publishing
// behavior.
'yarn',
'npm',
[
'publish',
'--new-version',
version,
...(releaseTag ? ['--tag', releaseTag] : []),
'--access',
'public',
...(skipGit ? ['--no-commit-hooks', '--no-git-tag-version'] : [])
...(isDryRun ? ['--dry-run'] : [])
],
{
cwd: pkgRoot,
Expand Down

0 comments on commit 32b91db

Please sign in to comment.