workflow: allow specifying release tag in release script

This commit is contained in:
Evan You 2020-11-25 10:58:52 -05:00
parent 6e8482e8d9
commit ccd4d406c1

View 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