Skip to content

Commit 50a9ad6

Browse files
committed
workflow: should not update versions in docs when prereleasing
1 parent ef68442 commit 50a9ad6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ async function release() {
111111
return
112112
}
113113

114-
if (!['patch', 'prerelease'].includes(t)) {
114+
if (['minor', 'major'].includes(t)) {
115115
const parsedCurrentVersion = semver.parse(currentVersion) as SemVer
116116
const parsedTargetVersion = semver.parse(targetVersion) as SemVer
117117
const pattern = new RegExp(`${name}@${parsedCurrentVersion.major}.${parsedCurrentVersion.minor}`, 'g')

0 commit comments

Comments
 (0)