Skip to content

Commit 4913e43

Browse files
feat: Build for release
1 parent aa759ad commit 4913e43

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"tagName":"v1.1.3","branch":"gh-actions","tags":["v1.1.3","v1","v1.1"],"updated_at":"2019-08-28T07:45:27.378Z"}
1+
{"tagName":"v1.1.4","branch":"gh-actions","tags":["v1.1.4","v1","v1.1"],"updated_at":"2019-08-28T09:21:43.095Z"}

lib/utils/command.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ const copyFiles = (buildDir, pushDir) => __awaiter(this, void 0, void 0, functio
167167
return true;
168168
});
169169
const checkDiff = (pushDir) => __awaiter(this, void 0, void 0, function* () {
170-
return (yield execAsync(`git -C ${pushDir} status --short -uno`)).split(/\r\n|\n/).filter(line => line.match(/^[MDA]\s+/)).length > 0;
170+
return (yield execAsync(`git -C ${pushDir} status --short -uno`, false, null, false, true)).split(/\r\n|\n/).filter(line => line.match(/^[MDA]\s+/)).length > 0;
171171
});
172-
const execAsync = (command, quiet = false, altCommand = null, suppressError = false) => new Promise((resolve, reject) => {
172+
const execAsync = (command, quiet = false, altCommand = null, suppressError = false, suppressOutput = false) => new Promise((resolve, reject) => {
173173
if ('string' === typeof altCommand)
174174
signale_1.default.info('Run command: %s', altCommand);
175175
else if (!quiet)
@@ -186,7 +186,7 @@ const execAsync = (command, quiet = false, altCommand = null, suppressError = fa
186186
reject(new Error(`command exited with code ${error.code}.`));
187187
}
188188
else {
189-
if (!quiet)
189+
if (!quiet && !suppressOutput)
190190
console.log(stdout);
191191
resolve(stdout);
192192
}

0 commit comments

Comments
 (0)