workflow: allow manually specifying dist-tag when releasing

This commit is contained in:
Haoqun Jiang
2020-02-27 10:26:02 +08:00
parent 480ac7f84f
commit 33487a858c

View File

@@ -95,7 +95,7 @@ const release = async () => {
}
}
let distTag = 'latest'
let distTag = cliOptions['dist-tag'] || 'latest'
if (bump === 'prerelease' || semver.prerelease(version)) {
distTag = 'next'
}