From d21245d6b5b9092694572ee5f035dcdf3046f777 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 27 Nov 2019 23:02:14 +0800 Subject: [PATCH] workflow: correctly decide which dist-tag to use --- scripts/release.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/release.js b/scripts/release.js index 33d1e73e08..80873b4376 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -95,12 +95,8 @@ const release = async () => { } } - const releaseType = semver.prerelease(curVersion) - ? 'prerelease' - : semver.diff(curVersion, version) - let distTag = 'latest' - if (releaseType.startsWith('pre')) { + if (bump === 'prerelease' || semver.prerelease(version)) { distTag = 'next' }