mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-11-20 18:38:33 +00:00
feat(ci): version bumper
This commit is contained in:
1 parent
4578d54c5e
commit
6fc1efdda1
2 files changed
+34
-3
No files matched your search
@@ -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)
|
||||
Reference in new issue
Block a user