From 8aca71b3543f06d8d57d07992422a96932d66a70 Mon Sep 17 00:00:00 2001 From: Evan You Date: Mon, 6 Jan 2020 12:09:37 -0500 Subject: [PATCH] build: adjust release tag for alpha/beta phase --- scripts/release.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 824d7301..e6b37851 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -113,9 +113,8 @@ async function main() { // publish packages step('\nPublishing packages...') - const releaseTag = semver.prerelease(targetVersion)[0] || 'latest' for (const pkg of packages) { - await publishPackage(pkg, targetVersion, releaseTag, runIfNotDry) + await publishPackage(pkg, targetVersion, runIfNotDry) } // push to GitHub @@ -172,7 +171,7 @@ function updateDeps(pkg, depType, version) { }) } -async function publishPackage(pkgName, version, releaseTag, runIfNotDry) { +async function publishPackage(pkgName, version, runIfNotDry) { if (skippedPackages.includes(pkgName)) { return } @@ -183,6 +182,14 @@ async function publishPackage(pkgName, version, releaseTag, runIfNotDry) { return } + // 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' : semver.prerelease(version)[0] || 'latest' + + // TODO use inferred release channel after offcial 3.0 release + // const releaseTag = semver.prerelease(version)[0] || 'latest' + step(`Publishing ${pkg}...`) try { await runIfNotDry(