release-please 13.4.14 → 13.4.15
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/build/src/bin/release-please.js +12 -1
- package/build/src/manifest.js +3 -18
- 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.15](https://github.com/googleapis/release-please/compare/v13.4.14...v13.4.15) (2022-03-02)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* tagging many GitHub releases should not require a file touched check ([#1321](https://github.com/googleapis/release-please/issues/1321)) ([ab99242](https://github.com/googleapis/release-please/commit/ab9924215e68838e6ec62d283b5712cbff6e6a4c))
|
|
13
|
+
|
|
7
14
|
### [13.4.14](https://github.com/googleapis/release-please/compare/v13.4.13...v13.4.14) (2022-03-01)
|
|
8
15
|
|
|
9
16
|
|
|
@@ -332,7 +332,18 @@ const createReleaseCommand = {
|
|
|
332
332
|
}
|
|
333
333
|
if (argv.dryRun) {
|
|
334
334
|
const releases = await manifest.buildReleases();
|
|
335
|
-
logger_1.logger.info(releases);
|
|
335
|
+
logger_1.logger.info(`Would tag ${releases.length} releases:`);
|
|
336
|
+
for (const release of releases) {
|
|
337
|
+
logger_1.logger.info({
|
|
338
|
+
name: release.name,
|
|
339
|
+
tag: release.tag.toString(),
|
|
340
|
+
notes: release.notes,
|
|
341
|
+
sha: release.sha,
|
|
342
|
+
draft: release.draft,
|
|
343
|
+
prerelease: release.prerelease,
|
|
344
|
+
pullNumber: release.pullRequest.number,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
336
347
|
}
|
|
337
348
|
else {
|
|
338
349
|
const releaseNumbers = await manifest.createReleases();
|
package/build/src/manifest.js
CHANGED
|
@@ -454,29 +454,11 @@ class Manifest {
|
|
|
454
454
|
const generator = await this.findMergedReleasePullRequests();
|
|
455
455
|
const releases = [];
|
|
456
456
|
for await (const pullRequest of generator) {
|
|
457
|
-
logger_1.logger.info('Looking at files touched by path');
|
|
458
|
-
const cs = new commit_split_1.CommitSplit({
|
|
459
|
-
includeEmpty: true,
|
|
460
|
-
packagePaths: Object.keys(this.repositoryConfig),
|
|
461
|
-
});
|
|
462
|
-
const commits = [
|
|
463
|
-
{
|
|
464
|
-
sha: pullRequest.sha,
|
|
465
|
-
message: pullRequest.title,
|
|
466
|
-
files: pullRequest.files,
|
|
467
|
-
},
|
|
468
|
-
];
|
|
469
|
-
const commitsPerPath = cs.split(commits);
|
|
470
457
|
for (const path in this.repositoryConfig) {
|
|
471
458
|
const config = this.repositoryConfig[path];
|
|
472
459
|
logger_1.logger.info(`Building release for path: ${path}`);
|
|
473
460
|
logger_1.logger.debug(`type: ${config.releaseType}`);
|
|
474
461
|
logger_1.logger.debug(`targetBranch: ${this.targetBranch}`);
|
|
475
|
-
const pathCommits = path === exports.ROOT_PROJECT_PATH ? commits : commitsPerPath[path];
|
|
476
|
-
if (!pathCommits || pathCommits.length === 0) {
|
|
477
|
-
logger_1.logger.info(`No commits for path: ${path}, skipping`);
|
|
478
|
-
continue;
|
|
479
|
-
}
|
|
480
462
|
const strategy = strategiesByPath[path];
|
|
481
463
|
const release = await strategy.buildRelease(pullRequest);
|
|
482
464
|
if (release) {
|
|
@@ -490,6 +472,9 @@ class Manifest {
|
|
|
490
472
|
release.tag.version.major === 0),
|
|
491
473
|
});
|
|
492
474
|
}
|
|
475
|
+
else {
|
|
476
|
+
logger_1.logger.info(`No release necessary for path: ${path}`);
|
|
477
|
+
}
|
|
493
478
|
}
|
|
494
479
|
}
|
|
495
480
|
return releases;
|
package/package.json
CHANGED