release-please 17.1.0 → 17.1.1

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.
@@ -14,4 +14,4 @@ export { Logger, setLogger } from './util/logger';
14
14
  export { GitHub } from './github';
15
15
  export declare const configSchema: any;
16
16
  export declare const manifestSchema: any;
17
- export declare const VERSION = "17.1.0";
17
+ export declare const VERSION = "17.1.1";
@@ -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.1.0';
39
+ exports.VERSION = '17.1.1';
40
40
  // x-release-please-end
41
41
  //# sourceMappingURL=index.js.map
@@ -45,6 +45,9 @@ class JavaYoshi extends java_1.Java {
45
45
  return commits;
46
46
  }
47
47
  async needsSnapshot() {
48
+ if (this.canSkipSnapshot()) {
49
+ return false;
50
+ }
48
51
  return versions_manifest_1.VersionsManifest.needsSnapshot((await this.getVersionsContent()).parsedContent);
49
52
  }
50
53
  async buildVersionsMap() {
@@ -22,6 +22,7 @@ export declare class Java extends BaseStrategy {
22
22
  buildReleasePullRequest(commits: ConventionalCommit[], latestRelease?: Release, draft?: boolean, labels?: string[], _bumpOnlyOptions?: BumpReleaseOptions): Promise<ReleasePullRequest | undefined>;
23
23
  protected buildSnapshotPullRequest(latestRelease?: Release, draft?: boolean, labels?: string[]): Promise<ReleasePullRequest>;
24
24
  isPublishedVersion(version: Version): boolean;
25
+ protected canSkipSnapshot(): boolean;
25
26
  protected needsSnapshot(commits: ConventionalCommit[], latestRelease?: Release): Promise<boolean>;
26
27
  protected buildUpdates(options: JavaBuildUpdatesOption): Promise<Update[]>;
27
28
  }
@@ -111,9 +111,12 @@ class Java extends base_1.BaseStrategy {
111
111
  isPublishedVersion(version) {
112
112
  return !version.preRelease || version.preRelease.indexOf('SNAPSHOT') < 0;
113
113
  }
114
+ canSkipSnapshot() {
115
+ return this.skipSnapshot;
116
+ }
114
117
  async needsSnapshot(commits, latestRelease) {
115
118
  var _a;
116
- if (this.skipSnapshot) {
119
+ if (this.canSkipSnapshot()) {
117
120
  return false;
118
121
  }
119
122
  const component = await this.getComponent();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "release-please",
3
- "version": "17.1.0",
3
+ "version": "17.1.1",
4
4
  "description": "generate release PRs based on the conventionalcommits.org spec",
5
5
  "main": "./build/src/index.js",
6
6
  "bin": "./build/src/bin/release-please.js",