build: adjust release tag
This commit is contained in:
parent
ec63623fe8
commit
0b992307a6
@ -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'
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user