INNER CODE UNIT · TypeScript
fileVersionRegex
KinsonDigital/Velaptor · DevTools/prep-prev-release.ts:34
const fileVersionRegex = /<FileVersion>(.+)<\/FileVersion>/;
const versionMatch = projectFileData.match(versionRegex);
const fileVersionMatch = projectFileData.match(fileVersionRegex);
if (versionMatch === null) {
console.log("Could not find version in the .csproj file.");
Deno.exit(1);
}
if (fileVersionMatch === null) {
console.log("Could not find file version in the .csproj file.");
Deno.exit(1);
}
const ownerName = "KinsonDigital";
const repoName = "Velaptor";
const prevLabel = "preview-release";
const baseBranch = "preview";