Browse Source

workflow: handle targetVersion in release script with publishOnly flag

Evan You 1 year ago
parent
commit
a1ee8b719f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      scripts/release.js

+ 4 - 0
scripts/release.js

@@ -563,6 +563,10 @@ async function publishPackage(pkgName, version, additionalFlags) {
 }
 
 async function publishOnly() {
+  const targetVersion = positionals[0]
+  if (targetVersion) {
+    updateVersions(targetVersion)
+  }
   await buildPackages()
   await publishPackages(currentVersion)
 }