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 // for now (alpha/beta phase), every package except "vue" can be published as
// `latest`, whereas "vue" will be published under the "next" tag. // `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 // 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}...`) step(`Publishing ${pkgName}...`)
try { try {
@ -197,8 +197,7 @@ async function publishPackage(pkgName, version, runIfNotDry) {
'publish', 'publish',
'--new-version', '--new-version',
version, version,
'--tag', ...(releaseTag ? ['--tag', releaseTag] : []),
releaseTag,
'--access', '--access',
'public' 'public'
], ],