@thisismanta/semantic-version 9.0.0 → 9.1.0

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/run.js CHANGED
@@ -22,24 +22,22 @@ var __importStar = (this && this.__importStar) || function (mod) {
22
22
  __setModuleDefault(result, mod);
23
23
  return result;
24
24
  };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
25
  Object.defineProperty(exports, "__esModule", { value: true });
29
26
  exports.run = run;
30
27
  const cp = __importStar(require("child_process"));
31
- const debug_1 = __importDefault(require("./debug"));
32
28
  function run(command) {
33
- (0, debug_1.default)(command);
34
29
  return new Promise((resolve, reject) => {
35
30
  cp.exec(command, (error, stdout, stderr) => {
36
- const output = (stdout + stderr).trim();
37
- (0, debug_1.default)(output);
38
31
  if (error) {
32
+ // See https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/workflow-commands-for-github-actions#grouping-log-lines
33
+ console.log('::group::' + command);
34
+ console.log(stdout);
35
+ console.error(stderr);
36
+ console.log('::endgroup::');
39
37
  reject(error);
40
38
  }
41
39
  else {
42
- resolve(output);
40
+ resolve((stdout + stderr).trim());
43
41
  }
44
42
  });
45
43
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thisismanta/semantic-version",
3
- "version": "9.0.0",
3
+ "version": "9.1.0",
4
4
  "author": "Anantachai Saothong <thisismanta@gmail.com>",
5
5
  "license": "ISC",
6
6
  "repository": {
package/lib/debug.d.ts DELETED
@@ -1 +0,0 @@
1
- export default function debug(...args: Array<any>): void;
package/lib/debug.js DELETED
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = debug;
4
- function debug(...args) {
5
- if (process.env.DEBUG || process.env.RUNNER_DEBUG /* For GitHub Actions */) {
6
- console.debug(...args);
7
- }
8
- }