mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 06:28:54 +00:00
ci(release): version bumper
This commit is contained in:
1 parent
613570167c
commit
8ea5aad876
2 files changed
+43
-16
No files matched your search
@@ -1,10 +1,10 @@
|
||||
const fs = require('fs')
|
||||
const fs = require('fs');
|
||||
|
||||
const version = process.env.TGT_RELEASE_VERSION
|
||||
const newVersion = version.replace('v', '')
|
||||
const version = process.env.TGT_RELEASE_VERSION;
|
||||
const newVersion = version.replace('v', '');
|
||||
|
||||
const manifestFile = fs.readFileSync('fxmanifest.lua', {encoding: 'utf8'})
|
||||
const manifestFile = fs.readFileSync('fxmanifest.lua', { encoding: 'utf8' });
|
||||
|
||||
const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`)
|
||||
const newFileContent = manifestFile.replace(/\bversion\s+(.*)$/gm, `version '${newVersion}'`);
|
||||
|
||||
fs.writeFileSync('fxmanifest.lua', newFileContent)
|
||||
fs.writeFileSync('fxmanifest.lua', newFileContent);
|
||||
Reference in new issue
Block a user