Release script: allow preparing RC from npm

This commit is contained in:
Dan Abramov
2020-09-22 14:27:50 +01:00
parent 04e21efd09
commit c91c1c4ebe
@@ -45,7 +45,7 @@ const run = async ({cwd, packages, tags}) => {
process.exit(1);
}
} else {
if (!tags.includes('latest')) {
if (version.indexOf('-') === -1 && !tags.includes('latest')) {
console.log(
theme`{error Stable release} {version ${version}} {error must always be tagged as} {tag latest}`
);