refactor: update esbuild and build process

This commit is contained in:
Linden committed 2024-02-02 16:34:57 +11:00
1 parent 779ecca76f
commit f05d375c14
9 files changed
+326 -272

No files matched your search

-10
View File
@@ -1,10 +0,0 @@
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);
-3
View File
@@ -43,9 +43,6 @@ jobs:
- name: Run build
run: pnpm build
- name: Bump manifest version
run: node .github/actions/bump-manifest-version.js
env:
TGT_RELEASE_VERSION: ${{ github.ref_name }}