Skip to content

Commit 32b91db

Browse files
committed
workflow: remove yarn usage in release script
1 parent e4a2d11 commit 32b91db

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/release.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -346,18 +346,16 @@ async function publishPackage(pkgName, version) {
346346

347347
step(`Publishing ${pkgName}...`)
348348
try {
349-
await runIfNotDry(
349+
await run(
350350
// note: use of yarn is intentional here as we rely on its publishing
351351
// behavior.
352-
'yarn',
352+
'npm',
353353
[
354354
'publish',
355-
'--new-version',
356-
version,
357355
...(releaseTag ? ['--tag', releaseTag] : []),
358356
'--access',
359357
'public',
360-
...(skipGit ? ['--no-commit-hooks', '--no-git-tag-version'] : [])
358+
...(isDryRun ? ['--dry-run'] : [])
361359
],
362360
{
363361
cwd: pkgRoot,

0 commit comments

Comments
 (0)