ci(release): version bumper

This commit is contained in:
Linden committed 2022-07-28 14:54:38 +10:00
1 parent 613570167c
commit 8ea5aad876
2 files changed
+43 -16

No files matched your search

+6 -6
View File
@@ -1,10 +1,10 @@
const fs = require('fs')
const fs = require('fs');
const version = process.env.TGT_RELEASE_VERSION
const newVersion = version.replace('v', '')
const version = process.env.TGT_RELEASE_VERSION;
const newVersion = version.replace('v', '');
const manifestFile = fs.readFileSync('fxmanifest.lua', {encoding: 'utf8'})
const manifestFile = fs.readFileSync('fxmanifest.lua', { encoding: 'utf8' });
const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`)
const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`);
fs.writeFileSync('fxmanifest.lua', newFileContent)
fs.writeFileSync('fxmanifest.lua', newFileContent);