mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-14 01:38:51 +00:00
docs: convert NEWS to CHANGELOG.md
This commit is contained in:
10
Scripts/standard-version-updater.js
Normal file
10
Scripts/standard-version-updater.js
Normal file
@@ -0,0 +1,10 @@
|
||||
module.exports.readVersion = function (contents) {
|
||||
console.debug('readVersion = ' + contents.match(/([0-9]+)/mg).join('.'));
|
||||
return contents.match(/([0-9]+)/mg).join('.');
|
||||
};
|
||||
|
||||
module.exports.writeVersion = function (contents, version) {
|
||||
console.debug('writeVersion = ' + version);
|
||||
const versions = version.split('.');
|
||||
return "MAJOR_VERSION=" + versions[0] + "\nMINOR_VERSION=" + versions[1] + "\nSUBMINOR_VERSION=" + versions[2];
|
||||
};
|
||||
Reference in New Issue
Block a user