release-please 17.5.0 → 17.5.2
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/build/src/index.d.ts +1 -1
- package/build/src/index.js +1 -1
- package/build/src/local-github.js +10 -4
- package/package.json +1 -1
package/build/src/index.d.ts
CHANGED
package/build/src/index.js
CHANGED
|
@@ -36,6 +36,6 @@ Object.defineProperty(exports, "GitHub", { enumerable: true, get: function () {
|
|
|
36
36
|
exports.configSchema = require('../../schemas/config.json');
|
|
37
37
|
exports.manifestSchema = require('../../schemas/manifest.json');
|
|
38
38
|
// x-release-please-start-version
|
|
39
|
-
exports.VERSION = '17.5.
|
|
39
|
+
exports.VERSION = '17.5.2';
|
|
40
40
|
// x-release-please-end
|
|
41
41
|
//# sourceMappingURL=index.js.map
|
|
@@ -71,8 +71,12 @@ class LocalGitHub {
|
|
|
71
71
|
logger.info(`Using existing local repository at ${repoDir}...`);
|
|
72
72
|
}
|
|
73
73
|
const branch = gitHubApi.repository.defaultBranch;
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
const fetchArgs = ['fetch', 'origin'];
|
|
75
|
+
if (options.cloneDepth) {
|
|
76
|
+
fetchArgs.push('--depth', options.cloneDepth.toString());
|
|
77
|
+
}
|
|
78
|
+
logger.debug(`Executing: git ${fetchArgs.join(' ')}`);
|
|
79
|
+
await execFile('git', fetchArgs, { cwd: repoDir });
|
|
76
80
|
logger.debug(`Executing: git checkout ${branch}`);
|
|
77
81
|
await execFile('git', ['checkout', branch], { cwd: repoDir });
|
|
78
82
|
logger.debug(`Executing: git reset --hard origin/${branch}`);
|
|
@@ -564,7 +568,9 @@ class LocalGitHub {
|
|
|
564
568
|
await fs.promises.writeFile(msgFile, message);
|
|
565
569
|
await execFile('git', ['add', '.'], { cwd: this.cloneDir });
|
|
566
570
|
try {
|
|
567
|
-
await execFile('git', ['commit', '-F', msgFile], {
|
|
571
|
+
await execFile('git', ['commit', '--no-verify', '-F', msgFile], {
|
|
572
|
+
cwd: this.cloneDir,
|
|
573
|
+
});
|
|
568
574
|
}
|
|
569
575
|
catch (err) {
|
|
570
576
|
const error = err;
|
|
@@ -579,7 +585,7 @@ class LocalGitHub {
|
|
|
579
585
|
await fs.promises.unlink(msgFile).catch(() => { });
|
|
580
586
|
}
|
|
581
587
|
// Push transit
|
|
582
|
-
await execFile('git', ['push', '-f', 'origin', branch], {
|
|
588
|
+
await execFile('git', ['push', '--no-verify', '-f', 'origin', branch], {
|
|
583
589
|
cwd: this.cloneDir,
|
|
584
590
|
});
|
|
585
591
|
}
|