Skip to content

Commit

Permalink
Create bump-web-version.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Gellipapa authored Oct 12, 2024
1 parent 956ef9b commit 631413c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/actions/bump-web-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
const fs = require("fs");
const path = require('path');
const replace = require('replace-in-file');

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

const results = replace.sync({
files: "fxmanifest.lua",
from: /\bversion\s+(.*)$/gm,
to: `version '${newVersion}'`,
});

console.log(results)

0 comments on commit 631413c

Please sign in to comment.