release-please 13.4.12 → 13.4.13
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/CHANGELOG.md +7 -0
- package/README.md +10 -0
- package/build/src/manifest.js +20 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/release-please?activeTab=versions
|
|
6
6
|
|
|
7
|
+
### [13.4.13](https://github.com/googleapis/release-please/compare/v13.4.12...v13.4.13) (2022-02-28)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* handle failures during multiple release creation ([#1315](https://github.com/googleapis/release-please/issues/1315)) ([fc856ae](https://github.com/googleapis/release-please/commit/fc856aed1d95def38170eff6381829cd6d7d1e0b))
|
|
13
|
+
|
|
7
14
|
### [13.4.12](https://github.com/googleapis/release-please/compare/v13.4.11...v13.4.12) (2022-02-22)
|
|
8
15
|
|
|
9
16
|
|
package/README.md
CHANGED
|
@@ -109,6 +109,16 @@ END_COMMIT_OVERRIDE
|
|
|
109
109
|
The next time release please runs, it will use that override section as the
|
|
110
110
|
commit message instead of the merged commit message.
|
|
111
111
|
|
|
112
|
+
## Release Please bot does not create a release PR. Why?
|
|
113
|
+
|
|
114
|
+
Release Please creates a release pull request after it sees the default branch
|
|
115
|
+
contains "releaseable units" since the last release.
|
|
116
|
+
A releasable unit is a commit to the branch with one of the following
|
|
117
|
+
prefixes: "feat" and "fix". (A "chore" commit is not a releasable unit.)
|
|
118
|
+
|
|
119
|
+
Some languages have their specific releasable unit configuration. For example,
|
|
120
|
+
"docs" is a prefix for releasable units in Java and Python.
|
|
121
|
+
|
|
112
122
|
## Strategy (Language) types supported
|
|
113
123
|
|
|
114
124
|
Release Please automates releases for the following flavors of repositories:
|
package/build/src/manifest.js
CHANGED
|
@@ -24,6 +24,7 @@ const factory_1 = require("./factory");
|
|
|
24
24
|
const pull_request_body_1 = require("./util/pull-request-body");
|
|
25
25
|
const merge_1 = require("./plugins/merge");
|
|
26
26
|
const release_please_manifest_1 = require("./updaters/release-please-manifest");
|
|
27
|
+
const errors_1 = require("./errors");
|
|
27
28
|
exports.DEFAULT_RELEASE_PLEASE_CONFIG = 'release-please-config.json';
|
|
28
29
|
exports.DEFAULT_RELEASE_PLEASE_MANIFEST = '.release-please-manifest.json';
|
|
29
30
|
exports.ROOT_PROJECT_PATH = '.';
|
|
@@ -525,7 +526,25 @@ class Manifest {
|
|
|
525
526
|
for (const release of releases) {
|
|
526
527
|
promises.push(this.createRelease(release));
|
|
527
528
|
}
|
|
528
|
-
const
|
|
529
|
+
const duplicateReleases = [];
|
|
530
|
+
const githubReleases = [];
|
|
531
|
+
for (const promise of promises) {
|
|
532
|
+
try {
|
|
533
|
+
githubReleases.push(await promise);
|
|
534
|
+
}
|
|
535
|
+
catch (err) {
|
|
536
|
+
if (err instanceof errors_1.DuplicateReleaseError) {
|
|
537
|
+
logger_1.logger.warn(`Duplicate release tag: ${err.tag}`);
|
|
538
|
+
duplicateReleases.push(err);
|
|
539
|
+
}
|
|
540
|
+
else {
|
|
541
|
+
throw err;
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
if (duplicateReleases.length > 0 && githubReleases.length === 0) {
|
|
546
|
+
throw duplicateReleases[0];
|
|
547
|
+
}
|
|
529
548
|
// adjust tags on pullRequest
|
|
530
549
|
await Promise.all([
|
|
531
550
|
this.github.removeIssueLabels(this.labels, pullRequest.number),
|
package/package.json
CHANGED