feat(ci): version bumper

This commit is contained in:
Linden
2022-08-23 04:44:52 +10:00
parent 4578d54c5e
commit 6fc1efdda1
2 changed files with 34 additions and 3 deletions

View File

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