Fix pro versioning on release

This commit is contained in:
Adria Navarro 2023-05-05 15:55:16 +01:00
parent c2a1cb5e0c
commit 67bd995aad
1 changed files with 5 additions and 0 deletions

View File

@ -26,6 +26,11 @@ Object.keys(data).forEach(workspace => {
// Loop through each dependency and update its version in package.json // Loop through each dependency and update its version in package.json
const packageJsonPath = path.join(data[workspace].location, "package.json") const packageJsonPath = path.join(data[workspace].location, "package.json")
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8")) const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf-8"))
if (packageJson.version !== "0.0.1") {
// Don't change if we are not using local versions
return
}
let hasChanges = false let hasChanges = false
if (packageJson.dependencies["@budibase/pro"]) { if (packageJson.dependencies["@budibase/pro"]) {