Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Update/UpdateToRelease.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ if (LastType == "Release") {
if (LastJSVersion != NpmVersion) {
console.warn("Assuming you manually ran npm version.");
} else {
execSync("npm version patch");
execSync("npm version minor");
}
var CurrentVersion = execSync("jq -r '.version' package.json").toString().trim();
console.log("Current version : " + CurrentVersion);
Expand Down
6 changes: 6 additions & 0 deletions Update/UpdateVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ var JSFileContent = readFileSync(JSFileName, "utf8");
execSync("git config --global user.email \"github-actions[bot]@users.noreply.github.com\"");
execSync("git config --global user.name \"github-actions[bot]\"");
if (JSONFileContent.includes('//!ci-no-touch')) {
var updatedContent = JSONFileContent.replace('//!ci-no-touch', '');
writeFileSync(JSONFileName, updatedContent, "utf8");
execSync("git config pull.rebase false");
execSync("git pull");
execSync("git commit -a -m \"remove //!ci-no-touch\"");
execSync("git push -f");
console.log('I won\'t touch this. Exiting process.');
process.exit(0);
}
Expand Down