mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
feat(ci): version bumper
This commit is contained in:
10
.github/actions/bump-manifest-version.js
vendored
Normal file
10
.github/actions/bump-manifest-version.js
vendored
Normal 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)
|
||||
Reference in New Issue
Block a user