]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
workflow: allow specifying release tag in release script
authorEvan You <yyx990803@gmail.com>
Wed, 25 Nov 2020 15:58:52 +0000 (10:58 -0500)
committerEvan You <yyx990803@gmail.com>
Wed, 25 Nov 2020 15:58:52 +0000 (10:58 -0500)
scripts/release.js

index 0f56307d96532a5c68ff9c88afb11e2e76665bde..770179ae20284cb8ddb1f04b833255731aeeee84 100644 (file)
@@ -183,7 +183,7 @@ async function publishPackage(pkgName, version, runIfNotDry) {
 
   // for now (alpha/beta phase), every package except "vue" can be published as
   // `latest`, whereas "vue" will be published under the "next" tag.
-  const releaseTag = pkgName === 'vue' ? 'next' : null
+  const releaseTag = args.tag || (pkgName === 'vue' ? 'next' : null)
 
   // TODO use inferred release channel after official 3.0 release
   // const releaseTag = semver.prerelease(version)[0] || null