Skip to content

Commit 1730854

Browse files
committed
fix: conditionally update stable tag based on version type
1 parent 8ca4a1b commit 1730854

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/version.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ replaceInFile(
1515
.replace(/(?<prefix>'CODE_SNIPPETS_VERSION',\s+)'[\w-.]+'/, `$1'${plugin.version}'`)
1616
)
1717

18-
replaceInFile(
19-
'src/readme.txt',
20-
contents => contents
21-
.replace(/(?<prefix>Stable tag:\s+|@version\s+)\d+\.\d+[\w-.]+$/mg, `$1${plugin.version}`)
22-
)
18+
if (!/beta/i.test(plugin.version)) {
19+
replaceInFile(
20+
'src/readme.txt',
21+
contents => contents
22+
.replace(/(?<prefix>Stable tag:\s+|@version\s+)\d+\.\d+[\w-.]+$/mg, `$1${plugin.version}`)
23+
)
24+
}

0 commit comments

Comments
 (0)