Skip to content
This repository has been archived by the owner on May 23, 2024. It is now read-only.

Commit

Permalink
fix: no global or multiline for version action regex
Browse files Browse the repository at this point in the history
  • Loading branch information
c-wide committed Dec 8, 2022
1 parent 14017b9 commit acbee78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/bump-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ const fileNames = ['fxmanifest.lua', 'package.json'];

fileNames.forEach((fileName) => {
const file = fs.readFileSync(fileName, { encoding: 'utf8' });
const newFileContent = file.replace(/(?<=version.*)\d\.\d\.\d/gm, newVersion);
const newFileContent = file.replace(/(?<=version.*)\d\.\d\.\d/, newVersion);
fs.writeFileSync(fileName, newFileContent);
});

0 comments on commit acbee78

Please sign in to comment.