feat(ci): version bumper

This commit is contained in:
Linden committed 2022-08-23 04:50:52 +10:00
1 parent 4578d54c5e
commit 6fc1efdda1
2 files changed
+34 -3

No files matched your search

+10
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)