From 5c2836ef6641de149f463d073a3dfff2315e9f6d Mon Sep 17 00:00:00 2001 From: Samuel Macleod Date: Thu, 29 Aug 2024 18:51:45 +0100 Subject: [PATCH] version number --- .github/prereleases/1-versions.mjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/prereleases/1-versions.mjs b/.github/prereleases/1-versions.mjs index 64b6df4f70a6..641c86f7124c 100644 --- a/.github/prereleases/1-versions.mjs +++ b/.github/prereleases/1-versions.mjs @@ -3,7 +3,8 @@ import { getPackagesForPrerelease, setPackage } from "./0-packages.mjs"; function getPrereleaseVersion() { const sha = execSync("git rev-parse --short HEAD", { encoding: "utf8" }); - return `0.0.0-${sha.trim()}`; + // Prefix with a `v` to ensure the version is always alphanumeric rather than just numeric (which can cause issues with some tools e.g vsce) + return `0.0.0-v${sha.trim()}`; } /**