We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a3d534 commit 5dfa300Copy full SHA for 5dfa300
1 file changed
.github/scripts/update-manifest.js
@@ -8,8 +8,12 @@ if (!tag) {
8
process.exit(1);
9
}
10
11
-// The version is the tag name without the 'v' prefix
12
-const version = tag.substring(1);
+const version = tag.startsWith('v') ? tag.substring(1) : tag;
+
13
+if (!/^\d+\.\d+\.\d+(-[\w.-]+)?$/.test(version)) {
14
+ console.error(`Invalid version format: "${version}". Expected semver like v1.2.3 or v1.2.3-beta.1`);
15
+ process.exit(1);
16
+}
17
18
// Path to the manifest file
19
const manifestPath = path.resolve(__dirname, '../../frontend/manifest.json');
@@ -23,4 +27,4 @@ try {
23
27
} catch (error) {
24
28
console.error(`Error updating manifest file: ${error.message}`);
25
29
26
-}
30
0 commit comments