Skip to content

Commit

Permalink
version number
Browse files Browse the repository at this point in the history
  • Loading branch information
penalosa committed Oct 3, 2024
1 parent 1999b27 commit 5c2836e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/prereleases/1-versions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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()}`;
}

/**
Expand Down

0 comments on commit 5c2836e

Please sign in to comment.