@addev-be/framework-utils 0.8.6 → 0.8.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -95,6 +95,16 @@ export const replaceVersionInEnvFiles = (globPath, newVersion) => {
95
95
  files.forEach((file) => replaceVersionInEnvFile(file, newVersion));
96
96
  };
97
97
 
98
+ export const replaceVersionInGitLabCi = (path, newVersion) => {
99
+ console.log('Replacing version in GitLab CI file', path);
100
+ const fileContents = readFileSync(path, 'utf-8');
101
+ const newFileContents = fileContents.replace(
102
+ /APP_VERSION: \d+\.\d+\.\d+/g,
103
+ `APP_VERSION: ${newVersion}`
104
+ );
105
+ writeFileSync(path, newFileContents);
106
+ };
107
+
98
108
  export const getCurrentVersion = () => {
99
109
  const packageJson = JSON.parse(
100
110
  readFileSync(join(__dirname, 'package.json'), 'utf-8')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@addev-be/framework-utils",
3
- "version": "0.8.6",
3
+ "version": "0.8.8",
4
4
  "type": "module",
5
5
  "export": {
6
6
  "node": {