build: adjust release tag

This commit is contained in:
Evan You 2020-01-22 10:51:17 -05:00
parent ec63623fe8
commit 0b992307a6

View File

@ -184,10 +184,10 @@ 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' : 'latest'
const releaseTag = pkgName === 'vue' ? 'next' : null
// TODO use inferred release channel after official 3.0 release
// const releaseTag = semver.prerelease(version)[0] || 'latest'
// const releaseTag = semver.prerelease(version)[0] || null
step(`Publishing ${pkgName}...`)
try {
@ -197,8 +197,7 @@ async function publishPackage(pkgName, version, runIfNotDry) {
'publish',
'--new-version',
version,
'--tag',
releaseTag,
...(releaseTag ? ['--tag', releaseTag] : []),
'--access',
'public'
],