@thisismanta/semantic-version 11.7.0 → 11.8.1
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.
- package/lib/make-next-release.js +1 -1
- package/lib/src.js +5 -8
- package/package.json +1 -1
package/lib/make-next-release.js
CHANGED
|
@@ -18741,7 +18741,7 @@ function getOctokit(token, options, ...additionalPlugins) {
|
|
|
18741
18741
|
(async function() {
|
|
18742
18742
|
const dryRun = process.argv.includes("--dry-run");
|
|
18743
18743
|
if (dryRun) console.log("⚠️ Running in dry-run mode.");
|
|
18744
|
-
if (!await require_src.run(`git config user.name
|
|
18744
|
+
if (!await require_src.run(`git config user.name || true`)) {
|
|
18745
18745
|
console.log("Setting Git commit author for further use in `" + require_src.npm + " version` and `git push` command...");
|
|
18746
18746
|
const name = context.payload.pusher?.name || context.actor;
|
|
18747
18747
|
console.log(" user.name =", name);
|
package/lib/src.js
CHANGED
|
@@ -453,21 +453,18 @@ function yn(value, { lenient: lenient$1 = false, default: default_ } = {}) {
|
|
|
453
453
|
}
|
|
454
454
|
//#endregion
|
|
455
455
|
//#region src/index.ts
|
|
456
|
-
const
|
|
456
|
+
const debugging = yn(process.env.DEBUG) || yn(process.env.RUNNER_DEBUG);
|
|
457
457
|
function run(command) {
|
|
458
458
|
return new Promise((resolve, reject) => {
|
|
459
459
|
node_child_process.exec(command, (error, stdout, stderr) => {
|
|
460
460
|
stdout = stdout.trim();
|
|
461
|
-
if (
|
|
461
|
+
if (debugging) {
|
|
462
462
|
console.log("::debug::»" + command);
|
|
463
|
-
console.log("::debug
|
|
463
|
+
console.log("::debug::", stdout);
|
|
464
464
|
}
|
|
465
465
|
if (error) {
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
if (stdout.length > 0) console.log("»", stdout);
|
|
469
|
-
}
|
|
470
|
-
console.log("::error::»", error.message);
|
|
466
|
+
console.log("::error::", error.message.trim());
|
|
467
|
+
if (!debugging && stdout.length > 0) console.log(stdout);
|
|
471
468
|
console.log(stderr.trimEnd());
|
|
472
469
|
reject(error);
|
|
473
470
|
} else resolve(stdout);
|