Skip to content

Commit

Permalink
chore: accept prerelease in some release script checks
Browse files Browse the repository at this point in the history
  • Loading branch information
bowheart committed Jan 6, 2025
1 parent 4793e57 commit 681af78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const generateChangelog = async (type, tagName, includeChores) => {

await Promise.all(promises)

if (hasBreakingChanges && !['major', 'premajor'].includes(type)) {
if (hasBreakingChanges && !['major', 'premajor', 'prerelease'].includes(type)) {
await confirm(
'Breaking changes detected. A major version or a premajor is recommended. Proceed anyway?',
false
Expand All @@ -292,7 +292,7 @@ const generateChangelog = async (type, tagName, includeChores) => {

if (
features.length &&
!['major', 'minor', 'premajor', 'preminor'].includes(type)
!['major', 'minor', 'premajor', 'preminor', 'prerelease'].includes(type)
) {
await confirm(
'New features detected. A major, minor, premajor, or preminor is recommended. Proceed anyway?',
Expand Down

0 comments on commit 681af78

Please sign in to comment.