feat(ci): Automatic fxmanifest bumping

This commit is contained in:
Luke committed 2022-04-13 19:33:30 +02:00
1 parent 23bcf90885
commit b8d2e16ed6
2 files changed
+33 -1

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)