Files
ox_lib/.github/actions/bump-manifest-version.js
2025-05-04 01:50:09 +02:00

9 lines
302 B
JavaScript

const fxManifest = await Bun.file('./fxmanifest.lua').text();
let newVersion = process.env.TGT_RELEASE_VERSION;
newVersion = newVersion.replace('v', '')
const newFileContent = fxManifest.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`);
await Bun.write('./fxmanifest.lua', newFileContent);