chore: add github files

This commit is contained in:
Manason
2023-11-09 08:08:38 -08:00
parent 8965df1dfc
commit 2f41535ce1
10 changed files with 516 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
// Based off of https://github.com/overextended/ox_lib/blob/master/.github/actions/bump-manifest-version.js
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)