ci(create-release): restructure and update versions

This commit is contained in:
ANTOND. committed 2025-05-02 16:31:52 +02:00
1 parent 9c9cb7e4e4
commit 17f38dfd31
3 files changed
+61 -62

No files matched your search

+10
View File
@@ -0,0 +1,10 @@
const fs = require('fs');
const version = process.env.TGT_RELEASE_VERSION;
const newVersion = version.replace('v', '');
const packageFile = fs.readFileSync('package/package.json', { encoding: 'utf8' });
const newFileContent = packageFile.replace(/"version":\s+"(.*)",$/gm, `"version": "${newVersion}",`);
fs.writeFileSync('package/package.json', newFileContent);