Skip to content

Commit

Permalink
fix(actions): bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
BerkieBb authored Sep 26, 2023
1 parent 10b9352 commit c74d7f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/actions/bump-manifest-version.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// Based off of https://github.com/overextended/ox_lib/blob/master/.github/actions/bump-manifest-version.js
import { readFileSync, writeFileSync } from 'fs'
const fs = require('fs')

const version = process.env.TGT_RELEASE_VERSION
const newVersion = version.replace('v', '')

const manifestFile = readFileSync('fxmanifest.lua', {encoding: 'utf8'})
const manifestFile = fs.readFileSync('fxmanifest.lua', {encoding: 'utf8'})

const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`)

writeFileSync('fxmanifest.lua', newFileContent)
fs.writeFileSync('fxmanifest.lua', newFileContent)

0 comments on commit c74d7f3

Please sign in to comment.