We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ca4a1b commit 1730854Copy full SHA for 1730854
scripts/version.ts
@@ -15,8 +15,10 @@ replaceInFile(
15
.replace(/(?<prefix>'CODE_SNIPPETS_VERSION',\s+)'[\w-.]+'/, `$1'${plugin.version}'`)
16
)
17
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
-)
+if (!/beta/i.test(plugin.version)) {
+ replaceInFile(
+ 'src/readme.txt',
+ contents => contents
+ .replace(/(?<prefix>Stable tag:\s+|@version\s+)\d+\.\d+[\w-.]+$/mg, `$1${plugin.version}`)
23
+ )
24
+}
0 commit comments