From 22af92aad29c4d72c8a6caeaf5c45d0f297db7b0 Mon Sep 17 00:00:00 2001 From: Joshua Claunch Date: Tue, 30 Jul 2024 14:57:07 -0400 Subject: [PATCH] chore: allow next branches to publish prerelease versions --- scripts/release.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/release.js b/scripts/release.js index 02a0a177..41b71abd 100755 --- a/scripts/release.js +++ b/scripts/release.js @@ -364,7 +364,7 @@ const getBranch = async type => { process.exit(1) } - if (isNext && type !== 'premajor' && type !== 'preminor') { + if (isNext && !['premajor', 'preminor', 'prerelease'].includes(type)) { console.error( 'Next branches can only publish premajor or preminor versions.' )