Skip to content

Commit

Permalink
chore: allow next branches to publish prerelease versions
Browse files Browse the repository at this point in the history
  • Loading branch information
bowheart committed Jul 30, 2024
1 parent f9042fd commit 22af92a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.'
)
Expand Down

0 comments on commit 22af92a

Please sign in to comment.