Skip to content

Commit

Permalink
build: adjust release tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 22, 2020
1 parent ec63623 commit 0b99230
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -197,8 +197,7 @@ async function publishPackage(pkgName, version, runIfNotDry) {
'publish',
'--new-version',
version,
'--tag',
releaseTag,
...(releaseTag ? ['--tag', releaseTag] : []),
'--access',
'public'
],
Expand Down

0 comments on commit 0b99230

Please sign in to comment.