Release script: allow preparing RC from npm
Dan Abramov committed
Sep 22, 2020 at 14:27 UTC
c91c1c4ebeb8db2f9fe5574a83ce828f9032351e
1 file changed
+1
-1
scripts/release/publish-commands/validate-tags.js
+1
-1
@@ -45,7 +45,7 @@ const run = async ({cwd, packages, tags}) => {
45
process.exit(1);
46
}
47
} else {
48
- if (!tags.includes('latest')) {
48
+ if (version.indexOf('-') === -1 && !tags.includes('latest')) {
49
console.log(
50
theme`{error Stable release} {version ${version}} {error must always be tagged as} {tag latest}`
51
);