Skip to content

Commit

Permalink
chore: add manifest bumper script
Browse files Browse the repository at this point in the history
  • Loading branch information
Manason committed Nov 18, 2023
1 parent b7e9039 commit b4fb9bb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/actions/bump-manifest-version.js
Original file line number Diff line number Diff line change
@@ -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)

0 comments on commit b4fb9bb

Please sign in to comment.