From c91c1c4ebeb8db2f9fe5574a83ce828f9032351e Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Tue, 22 Sep 2020 14:27:50 +0100 Subject: [PATCH] Release script: allow preparing RC from npm --- scripts/release/publish-commands/validate-tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release/publish-commands/validate-tags.js b/scripts/release/publish-commands/validate-tags.js index 92a593d96b..329826b891 100644 --- a/scripts/release/publish-commands/validate-tags.js +++ b/scripts/release/publish-commands/validate-tags.js @@ -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}` );