]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: remove yarn usage in release script
authorEvan You <yyx990803@gmail.com>
Sat, 8 Apr 2023 05:28:55 +0000 (13:28 +0800)
committerEvan You <yyx990803@gmail.com>
Sat, 8 Apr 2023 05:28:55 +0000 (13:28 +0800)
scripts/release.js

index e3117727ec27ce37e2abf893ecfb3bf26c0680ba..15130174149736eeb74b41ae6659a18c2a0bba12 100644 (file)
@@ -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,