@salesforce/plugin-release-management 3.7.10 → 3.8.0

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.
@@ -1 +1 @@
1
- {"version":3,"file":"SimplifiedSigning.js","sourceRoot":"","sources":["../../src/codeSigning/SimplifiedSigning.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH;;;;;;;;;;;;;;;GAeG;AACH,mCAAmE;AACnE,2BAAsC;AAEtC,kDAAkD;AAElD,MAAM,YAAY,GAAG,YAAY,CAAC;AAClC,MAAM,MAAM,GAAG,qBAAqB,CAAC;AACxB,QAAA,QAAQ,GAAG,kCAAkC,CAAC;AAC9C,QAAA,aAAa,GAAG,+BAA+B,CAAC;AAoCtD,MAAM,eAAe,GAAG,CAAC,WAAmB,EAAE,cAAsB,EAA2B,EAAE;IACtG,MAAM,mBAAmB,GAAG,GAAG,gBAAQ,IAAI,qBAAa,IAAI,WAAW,IAAI,cAAc,EAAE,CAAC;IAC5F,OAAO;QACL,YAAY,EAAE,GAAG,mBAAmB,MAAM;QAC1C,YAAY,EAAE,GAAG,mBAAmB,MAAM;KAC3C,CAAC;AACJ,CAAC,CAAC;AANW,QAAA,eAAe,mBAM1B;AAEK,MAAM,gBAAgB,GAAG,KAAK,EAAE,cAA8B,EAA4B,EAAE;IACjG,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,GAAG,MAAM,iBAAiB,EAAE,CAAC;IAC5D,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,GAAG,cAAc,CAAC;IACvD,MAAM,iBAAiB,GAAG,MAAM,YAAY,CAAC,UAAU,EAAE,cAAc,CAAC,gBAAgB,CAAC,CAAC;IAE1F,iDAAiD;IACjD,MAAM,MAAM,CAAC,cAAc,CAAC,gBAAgB,EAAE,SAAS,EAAE,iBAAiB,CAAC,CAAC;IAC5E,MAAM,MAAM,GAAoB;QAC9B,iBAAiB,EAAE,SAAS;QAC5B,iBAAiB;QACjB,uBAAu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AAS,EAAE,QAAQ,CAAC,EAAE;YACnD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;SACtB;QACD,OAAO,MAAM,CAAC,8BAA8B,CAAC,CAAC;IAChD,CAAC,CAAC,CAAC;IAEH,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC"}
@@ -3,17 +3,21 @@ export default class build extends SfCommand<void> {
3
3
  static readonly description: string;
4
4
  static readonly summary: string;
5
5
  static readonly examples: string[];
6
+ static readonly aliases: string[];
6
7
  static readonly flags: {
7
- rctag: import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
+ 'start-from-npm-dist-tag': import("@oclif/core/lib/interfaces").OptionFlag<string>;
9
+ 'start-from-github-ref': import("@oclif/core/lib/interfaces").OptionFlag<string>;
8
10
  'build-only': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
9
11
  resolutions: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
10
12
  only: import("@oclif/core/lib/interfaces").OptionFlag<string[]>;
11
13
  'pinned-deps': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
12
14
  patch: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
+ prerelease: import("@oclif/core/lib/interfaces").OptionFlag<string>;
13
16
  snapshot: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
14
17
  schema: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
15
18
  };
16
19
  run(): Promise<void>;
20
+ private getGithubRef;
17
21
  private exec;
18
22
  private maybeSetGitConfig;
19
23
  }
@@ -0,0 +1,202 @@
1
+ "use strict";
2
+ /*
3
+ * Copyright (c) 2020, salesforce.com, inc.
4
+ * All rights reserved.
5
+ * Licensed under the BSD 3-Clause license.
6
+ * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
9
+ const node_util_1 = require("node:util");
10
+ const child_process_1 = require("child_process");
11
+ const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
12
+ const ts_types_1 = require("@salesforce/ts-types");
13
+ const kit_1 = require("@salesforce/kit");
14
+ const core_1 = require("@octokit/core");
15
+ const core_2 = require("@salesforce/core");
16
+ const repository_1 = require("../../../repository");
17
+ const exec = (0, node_util_1.promisify)(child_process_1.exec);
18
+ core_2.Messages.importMessagesDirectory(__dirname);
19
+ const messages = core_2.Messages.loadMessages('@salesforce/plugin-release-management', 'cli.release.build');
20
+ class build extends sf_plugins_core_1.SfCommand {
21
+ async run() {
22
+ const { flags } = await this.parse(build);
23
+ const pushChangesToGitHub = !flags['build-only'];
24
+ const auth = pushChangesToGitHub
25
+ ? (0, ts_types_1.ensureString)(new kit_1.Env().getString('GH_TOKEN') ?? new kit_1.Env().getString('GITHUB_TOKEN'), 'The GH_TOKEN env var is required to push changes to GitHub. Use the --build-only flag to skip GitHub operations (a manual push will then be needed)')
26
+ : undefined;
27
+ const ref = await this.getGithubRef(flags['start-from-github-ref'], flags['start-from-npm-dist-tag']);
28
+ // Check out "starting point"
29
+ // Works with sha (detached): "git checkout f476e8e"
30
+ // Works with remote branch: "git checkout my-branch"
31
+ // Works with tag (detached): "git checkout 7.174.0"
32
+ await this.exec(`git checkout ${ref}`);
33
+ const repo = await repository_1.PackageRepo.create({ ux: new sf_plugins_core_1.Ux({ jsonEnabled: this.jsonEnabled() }) });
34
+ // Get the current version for the "starting point"
35
+ const currentVersion = repo.package.packageJson.version;
36
+ // TODO: We might want to check and see if nextVersion exists
37
+ // Determine the next version based on if --patch was passed in or if it is a prerelease
38
+ const nextVersion = repo.package.determineNextVersion(flags.patch, flags.prerelease);
39
+ repo.nextVersion = nextVersion;
40
+ // Prereleases and patches need special branch prefixes to trigger GitHub Actions
41
+ const branchPrefix = flags.patch ? 'patch/' : flags.prerelease ? 'prerelease/' : '';
42
+ const branchName = `${branchPrefix}${nextVersion}`;
43
+ this.log(`Starting from '${ref}' (${currentVersion}) and creating branch '${branchName}'`);
44
+ // Create a new branch that matches the next version
45
+ await this.exec(`git switch -c ${branchName}`);
46
+ if (flags.patch && pushChangesToGitHub) {
47
+ // Since patches can be created from any previous dist-tag or github ref,
48
+ // it is unlikely that we would be able to merge these into main.
49
+ // Before we make any changes, push this branch to use as our PR `base`.
50
+ // The build-patch.yml GHA will watch for merges into this branch to trigger a patch release
51
+ // TODO: ^ update this GHA reference once it is decided
52
+ await this.exec(`git push -u origin ${branchName}`);
53
+ }
54
+ // bump the version in the pjson to the next version for this tag
55
+ this.log(`Setting the version to ${nextVersion}`);
56
+ repo.package.setNextVersion(nextVersion);
57
+ repo.package.packageJson.version = nextVersion;
58
+ if (flags.only) {
59
+ this.log(`Bumping the following dependencies only: ${flags.only.join(', ')}`);
60
+ const bumped = repo.package.bumpDependencyVersions(flags.only);
61
+ if (!bumped.length) {
62
+ throw new core_2.SfError('No version changes made. Confirm you are passing the correct dependency and version to --only.');
63
+ }
64
+ }
65
+ else {
66
+ // bump resolution deps
67
+ if (flags.resolutions) {
68
+ this.log('Bumping resolutions in the package.json to their "latest"');
69
+ repo.package.bumpResolutions('latest');
70
+ }
71
+ // pin the pinned dependencies
72
+ if (flags['pinned-deps']) {
73
+ this.log('Pinning dependencies in pinnedDependencies to "latest-rc"');
74
+ repo.package.pinDependencyVersions('latest-rc');
75
+ }
76
+ }
77
+ repo.package.writePackageJson();
78
+ await this.exec('yarn install');
79
+ // streamline the lockfile
80
+ await this.exec('npx yarn-deduplicate');
81
+ if (flags.snapshot) {
82
+ this.log('Updating snapshots');
83
+ await this.exec(`./bin/${repo.name === 'sfdx-cli' ? 'dev.sh' : 'dev'} snapshot:generate`);
84
+ }
85
+ if (flags.schema) {
86
+ this.log('Updating schema');
87
+ await this.exec('sf-release cli:schemas:collect');
88
+ }
89
+ this.log('Updates complete');
90
+ if (pushChangesToGitHub) {
91
+ const octokit = new core_1.Octokit({ auth });
92
+ await this.maybeSetGitConfig(octokit);
93
+ // commit package.json/yarn.lock and potentially command-snapshot changes
94
+ await this.exec('git add .');
95
+ await this.exec(`git commit -m "chore(release): bump to ${nextVersion}"`);
96
+ await this.exec(`git push --set-upstream origin ${branchName} --no-verify`);
97
+ const [repoOwner, repoName] = repo.package.packageJson.repository.split('/');
98
+ // TODO: Review this after prerelease flow is solidified
99
+ const prereleaseDetails = '\n**IMPORTANT:**\nPrereleases work differently than regular releases. Github Actions watches for branches prefixed with `prerelease/`. As long as the `package.json` contains a valid "prerelease tag" (1.2.3-dev.0), a new prerelease will be created for EVERY COMMIT pushed to that branch. If you would like to merge this PR into `main`, simply push one more commit to this branch that sets the version in the `package.json` to the version you\'d like to release.';
100
+ // If it is a patch, we will set the PR base to the prefixed branch we pushed earlier
101
+ // The Github Action will watch the `patch/` prefix for changes
102
+ const base = flags.patch ? `${branchName}` : 'main';
103
+ await octokit.request(`POST /repos/${repoOwner}/${repoName}/pulls`, {
104
+ owner: repoOwner,
105
+ repo: repoName,
106
+ head: nextVersion,
107
+ base,
108
+ title: `Release PR for ${nextVersion}`,
109
+ body: `Building ${nextVersion} [skip-validate-pr]${flags.prerelease ? prereleaseDetails : ''}`,
110
+ });
111
+ }
112
+ }
113
+ async getGithubRef(githubRef, distTag) {
114
+ let ref;
115
+ if (githubRef) {
116
+ this.log(`Flag '--start-from-github-ref' passed, switching to '${githubRef}'`);
117
+ ref = githubRef;
118
+ }
119
+ else {
120
+ this.log(`Flag '--start-from-npm-dist-tag' passed, looking up version for ${distTag}`);
121
+ const temp = await repository_1.PackageRepo.create({ ux: new sf_plugins_core_1.Ux({ jsonEnabled: this.jsonEnabled() }) });
122
+ const version = temp.package.getDistTags(temp.package.packageJson.name)[distTag];
123
+ ref = version;
124
+ }
125
+ return ref;
126
+ }
127
+ async exec(command, silent = false) {
128
+ try {
129
+ const { stdout } = await exec(command);
130
+ if (!silent) {
131
+ this.styledHeader(command);
132
+ this.log(stdout);
133
+ }
134
+ return stdout;
135
+ }
136
+ catch (err) {
137
+ throw new core_2.SfError(err.message);
138
+ }
139
+ }
140
+ async maybeSetGitConfig(octokit) {
141
+ const username = await this.exec('git config user.name', true);
142
+ const email = await this.exec('git config user.email', true);
143
+ if (!username || !email) {
144
+ const user = await octokit.request('GET /user');
145
+ if (!username)
146
+ await this.exec(`git config user.name "${user.data.name}"`);
147
+ if (!email)
148
+ await this.exec(`git config user.email "${user.data.email}"`);
149
+ }
150
+ }
151
+ }
152
+ exports.default = build;
153
+ build.description = messages.getMessage('description');
154
+ build.summary = messages.getMessage('description');
155
+ build.examples = messages.getMessages('examples');
156
+ build.aliases = ['cli:latestrc:build'];
157
+ build.flags = {
158
+ 'start-from-npm-dist-tag': sf_plugins_core_1.Flags.string({
159
+ summary: messages.getMessage('flags.startFromNpmDistTag'),
160
+ char: 'd',
161
+ aliases: ['rctag'],
162
+ deprecateAliases: true,
163
+ exactlyOne: ['start-from-npm-dist-tag', 'start-from-github-ref'],
164
+ }),
165
+ 'start-from-github-ref': sf_plugins_core_1.Flags.string({
166
+ summary: messages.getMessage('flags.startFromGithubRef'),
167
+ char: 'g',
168
+ exactlyOne: ['start-from-npm-dist-tag', 'start-from-github-ref'],
169
+ }),
170
+ 'build-only': sf_plugins_core_1.Flags.boolean({
171
+ summary: messages.getMessage('flags.buildOnly'),
172
+ default: false,
173
+ }),
174
+ resolutions: sf_plugins_core_1.Flags.boolean({
175
+ summary: messages.getMessage('flags.resolutions'),
176
+ default: true,
177
+ allowNo: true,
178
+ }),
179
+ only: (0, sf_plugins_core_1.arrayWithDeprecation)({
180
+ summary: messages.getMessage('flags.only'),
181
+ }),
182
+ 'pinned-deps': sf_plugins_core_1.Flags.boolean({
183
+ summary: messages.getMessage('flags.pinnedDeps'),
184
+ default: true,
185
+ allowNo: true,
186
+ }),
187
+ patch: sf_plugins_core_1.Flags.boolean({
188
+ summary: messages.getMessage('flags.patch'),
189
+ exclusive: ['prerelease'],
190
+ }),
191
+ prerelease: sf_plugins_core_1.Flags.string({
192
+ summary: messages.getMessage('flags.prerelease'),
193
+ exclusive: ['patch'],
194
+ }),
195
+ snapshot: sf_plugins_core_1.Flags.boolean({
196
+ summary: messages.getMessage('flags.snapshot'),
197
+ }),
198
+ schema: sf_plugins_core_1.Flags.boolean({
199
+ summary: messages.getMessage('flags.schema'),
200
+ }),
201
+ };
202
+ //# sourceMappingURL=build.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/commands/cli/release/build.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,yCAAsC;AACtC,iDAAiD;AACjD,iEAAyF;AACzF,mDAAoD;AACpD,yCAAsC;AACtC,wCAAwC;AACxC,2CAAqD;AACrD,oDAAkD;AAElD,MAAM,IAAI,GAAG,IAAA,qBAAS,EAAC,oBAAQ,CAAC,CAAC;AAEjC,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,uCAAuC,EAAE,mBAAmB,CAAC,CAAC;AAErG,MAAqB,KAAM,SAAQ,2BAAe;IAmDzC,KAAK,CAAC,GAAG;QACd,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE1C,MAAM,mBAAmB,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAEjD,MAAM,IAAI,GAAG,mBAAmB;YAC9B,CAAC,CAAC,IAAA,uBAAY,EACV,IAAI,SAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,IAAI,SAAG,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EACtE,qJAAqJ,CACtJ;YACH,CAAC,CAAC,SAAS,CAAC;QAEd,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,uBAAuB,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,CAAC,CAAC;QAE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AC,UAAU,CAAC,iBAAiB,CAAC;QAC/C,OAAO,EAAE,KAAK;KACf,CAAC;IACF,WAAW,EAAE,uBAAK,CAAC,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,mBAAmB,CAAC;QACjD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KACd,CAAC;IACF,IAAI,EAAE,IAAA,sCAAoB,EAAC;QACzB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC;KAC3C,CAAC;IACF,aAAa,EAAE,uBAAK,CAAC,OAAO,CAAC;QAC3B,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAChD,OAAO,EAAE,IAAI;QACb,OAAO,EAAE,IAAI;KACd,CAAC;IACF,KAAK,EAAE,uBAAK,CAAC,OAAO,CAAC;QACnB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC;QAC3C,SAAS,EAAE,CAAC,YAAY,CAAC;KAC1B,CAAC;IACF,UAAU,EAAE,uBAAK,CAAC,MAAM,CAAC;QACvB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,kBAAkB,CAAC;QAChD,SAAS,EAAE,CAAC,OAAO,CAAC;KACrB,CAAC;IACF,QAAQ,EAAE,uBAAK,CAAC,OAAO,CAAC;QACtB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,gBAAgB,CAAC;KAC/C,CAAC;IACF,MAAM,EAAE,uBAAK,CAAC,OAAO,CAAC;QACpB,OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;KAC7C,CAAC;CACH,CAAC"}
package/lib/package.d.ts CHANGED
@@ -75,7 +75,7 @@ export declare class Package extends AsyncOptionalCreatable {
75
75
  bumpResolutions(tag: string): void;
76
76
  getDependencyInfo(name: string, dependencies: Record<string, string>): DependencyInfo;
77
77
  bumpDependencyVersions(targetDependencies: string[]): DependencyInfo[];
78
- getNextRCVersion(tag: string, isPatch?: boolean): string;
78
+ determineNextVersion(isPatch?: boolean, prerelease?: string): string;
79
79
  pinDependencyVersions(targetTag: string): ChangedPackageVersions;
80
80
  /**
81
81
  * Returns true if the version specified in the package.json has not been
package/lib/package.js CHANGED
@@ -178,12 +178,10 @@ class Package extends kit_1.AsyncOptionalCreatable {
178
178
  })
179
179
  .filter(Boolean); // remove falsy values, in this case the `undefined` if version did not change
180
180
  }
181
- getNextRCVersion(tag, isPatch = false) {
182
- const versions = this.getDistTags(this.packageJson.name);
183
- const version = semver.parse(versions[tag]);
184
- return isPatch
185
- ? `${version.major}.${version.minor}.${version.patch + 1}`
186
- : `${version.major}.${version.minor + 1}.0`;
181
+ determineNextVersion(isPatch = false, prerelease) {
182
+ const currentVersion = this.packageJson.version;
183
+ const releaseType = prerelease ? 'prerelease' : isPatch ? 'patch' : 'minor';
184
+ return semver.inc(currentVersion, releaseType, prerelease);
187
185
  }
188
186
  pinDependencyVersions(targetTag) {
189
187
  // get the list of dependencies to hardcode
@@ -1 +1 @@
1
- {"version":3,"file":"package.js","sourceRoot":"","sources":["../src/package.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,yBAAyB;AACzB,6BAA6B;AAC7B,iCAAiC;AACjC,sCAAoC;AACpC,qCAAoC;AACpC,2CAAmD;AACnD,yCAA6E;AAC7E,mDAA8D;AAC9D,yCAAsC;AA6DtC,SAAgB,uBAAuB,CAAC,KAAa;IACnD,OAAO,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,0DAA0D,EAAE,EAAE,CAAC,CAAC;AAC3G,CAAC;AAFD,0DAEC;AAED,SAAgB,mBAAmB,CAAC,KAAa;IAC/C,MAAM,KAAK,GAAG,kDAAkD,CAAC;IACjE,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC9B,CAAC;AAHD,kDAGC;AAED,MAAa,OAAQ,SAAQ,4BAAsB;IAUjD,YAAm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UAAU,EAAE,EAAE,IAAI,CAAC,CAAC;IAChE,CAAC;IAES,KAAK,CAAC,IAAI;QAClB,IAAI,CAAC,MAAM,GAAG,MAAM,aAAM,CAAC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;QACxD,IAAI,CAAC,WAAW,GAAG,MAAM,IAAI,CAAC,eAAe,EAAE,CAAC;QAChD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,IAAI,CAAC,uBAAuB,EAAE,CAAC;IAChF,CAAC;IAEO,uBAAuB;QAC7B,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,OAAO;YACjC,QAAQ,EAAE,EAAE;YACZ,WAAW,EAAE,EAAE;SAChB,CAAC;IACJ,CAAC;CACF;AApSD,0BAoSC"}
@@ -0,0 +1,26 @@
1
+ {
2
+ "description": "builds a new release from a designated starting point and optionally creates PR in Github",
3
+ "examples": [
4
+ "<%= config.bin %> <%= command.id %>",
5
+ "<%= config.bin %> <%= command.id %> --patch",
6
+ "<%= config.bin %> <%= command.id %> --start-from-npm-dist-tag latest-rc --patch",
7
+ "<%= config.bin %> <%= command.id %> --start-from-github-ref 7.144.0",
8
+ "<%= config.bin %> <%= command.id %> --start-from-github-ref main",
9
+ "<%= config.bin %> <%= command.id %> --start-from-github-ref f476e8e",
10
+ "<%= config.bin %> <%= command.id %> --start-from-github-ref main --prerelease beta",
11
+ "<%= config.bin %> <%= command.id %> --build-only",
12
+ "<%= config.bin %> <%= command.id %> --only @salesforce/plugin-source,@salesforce/plugin-info@1.2.3,@sf/config"
13
+ ],
14
+ "flags": {
15
+ "startFromNpmDistTag": "the npm dist-tag to start the release from, examples: nightly, latest-rc",
16
+ "startFromGithubRef": "a Github ref to start the release from, examples: main, 7.144.0, f476e8e",
17
+ "resolutions": "bump the versions of packages listed in the resolutions section",
18
+ "pinnedDeps": "bump the versions of the packages listed in the pinnedDependencies section",
19
+ "only": "only bump the version of the packages passed in, uses latest if version is not provided",
20
+ "patch": "bump the release as a patch of an existing version, not a new minor version",
21
+ "prerelease": "name of the prerelease to create, examples: dev, alpha",
22
+ "buildOnly": "only build the release, do not git add/commit/push",
23
+ "snapshot": "update the snapshots and commit them to the PR",
24
+ "schema": "update the schemas and commit them to the PR"
25
+ }
26
+ }
@@ -1 +1 @@
1
- {"version":"3.7.10","commands":{"channel:promote":{"id":"channel:promote","summary":"promote a s3 channel","description":"promote a s3 channel","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --candidate latest-rc --target latest --platform win --platform mac"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, only show what would happen","allowNo":false},"promote-to-channel":{"name":"promote-to-channel","type":"option","char":"t","summary":"the channel name that you are promoting to","required":true,"multiple":false,"default":"stable","aliases":["target"]},"promote-from-channel":{"name":"promote-from-channel","type":"option","char":"C","summary":"the channel name that you want to promote","multiple":false,"aliases":["candidate"]},"platform":{"name":"platform","type":"option","char":"p","summary":"the platform to promote","multiple":true,"options":["win","macos","deb"]},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli name to promote","required":true,"helpValue":"(sf|sfdx)","multiple":false,"options":["sf","sfdx"]},"sha":{"name":"sha","type":"option","char":"s","summary":"the short sha to promote","multiple":false},"max-age":{"name":"max-age","type":"option","char":"m","summary":"cache control max-age in seconds","multiple":false,"default":300,"aliases":["maxage"]},"indexes":{"name":"indexes","type":"boolean","char":"i","summary":"append the promoted urls into the index files","allowNo":true},"xz":{"name":"xz","type":"boolean","char":"x","summary":"also upload xz","allowNo":true},"architecture-target":{"name":"architecture-target","type":"option","char":"T","summary":"comma-separated targets to promote (e.g.: linux-arm,win32-x64)","multiple":true,"options":["linux-x64","linux-arm","win32-x64","win32-x86","darwin-x64"],"aliases":["targets"]},"version":{"name":"version","type":"option","char":"v","summary":"the version of the candidate to be promoted, which must exist already in s3. Used to fetch the correct sha","multiple":false}},"args":[]},"cli:releasenotes":{"id":"cli:releasenotes","summary":"pull all relevant information for writing release notes.\n Requires the GH_TOKEN to be set in the environment.","description":"pull all relevant information for writing release notes.\n Requires the GH_TOKEN to be set in the environment.","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sf","<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf --since 1.0.0","<%= config.bin %> <%= command.id %> --cli sfdx --since 7.19.0","<%= config.bin %> <%= command.id %> --cli sf > changes.txt","<%= config.bin %> <%= command.id %> --cli sf --markdown > changes.md"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to pull information for","required":true,"multiple":false,"options":["sf","sfdx"]},"since":{"name":"since","type":"option","char":"s","summary":"the version number of the previous release. Defaults to the latest-rc version on npm","multiple":false},"markdown":{"name":"markdown","type":"boolean","char":"m","summary":"format the output in markdown","allowNo":false}},"args":[]},"dependabot:automerge":{"id":"dependabot:automerge","summary":"automatically merge one green, mergeable PR up to the specified maximum bump type","description":"automatically merge one green, mergeable PR up to the specified maximum bump type","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"owner":{"name":"owner","type":"option","char":"o","summary":"the organization that the repository belongs to. This defaults to the owner specified in the package.json","multiple":false,"dependsOn":["repo"]},"repo":{"name":"repo","type":"option","char":"r","summary":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json","multiple":false,"dependsOn":["owner"]},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"multiple":false,"options":["major","minor","patch"],"default":"minor"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"skip-ci":{"name":"skip-ci","type":"boolean","char":"s","summary":"add [skip ci] to the merge commit title","allowNo":false},"merge-method":{"name":"merge-method","type":"option","summary":"merge method to use","multiple":false,"options":["merge","squash","rebase"],"default":"merge"}},"args":[]},"dependabot:consolidate":{"id":"dependabot:consolidate","summary":"consolidate dependabot PRs into a single PR","description":"consolidate dependabot PRs into a single PR","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"multiple":false,"options":["major","minor","patch"],"default":"minor"},"base-branch":{"name":"base-branch","type":"option","char":"b","summary":"name of the base branch for merging","required":true,"multiple":false,"default":"main"},"target-branch":{"name":"target-branch","type":"option","char":"t","summary":"name of the target branch for merging","required":true,"multiple":false,"default":"consolidate-dependabot"},"ignore":{"name":"ignore","type":"option","summary":"ignore any PRs with titles that include this value","multiple":true},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"no-pr":{"name":"no-pr","type":"boolean","summary":"do everything but create the PR","allowNo":false},"owner":{"name":"owner","type":"option","char":"o","summary":"the organization that the repository belongs to. This defaults to the owner specified in the package.json","multiple":false},"repo":{"name":"repo","type":"option","char":"r","summary":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json","multiple":false,"dependsOn":["owner"]}},"args":[]},"repositories":{"id":"repositories","summary":"list repositories owned and supported by Salesforce CLI\nFor more information on the list of repositories, visit https://github.com/salesforcecli/status.","description":"list repositories owned and supported by Salesforce CLI\nFor more information on the list of repositories, visit https://github.com/salesforcecli/status.","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --columns=url --filter='Name=sfdx-core' --no-header | xargs open","<%= config.bin %> <%= command.id %> --json | jq -r '.result[] | select(.name==\"sfdx-core\") | .packages[] | .url"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[]},"typescript:update":{"id":"typescript:update","summary":"Runs tests with updated typescript version and ES target","description":"Runs tests with updated typescript version and ES target","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"version":{"name":"version","type":"option","char":"v","summary":"Specify the typescript version you'd like to update to. Defaults to latest if not specified","multiple":false,"default":"latest"},"target":{"name":"target","type":"option","char":"t","summary":"Specify the ES target you'd like to use. Defaults to ESNext if not specified","multiple":false,"default":"ESNext"}},"args":[]},"cli:install:test":{"id":"cli:install:test","summary":"install sf or sfdx","description":"install sf or sfdx","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sfdx --method installer","<%= config.bin %> <%= command.id %> --cli sfdx --method npm","<%= config.bin %> <%= command.id %> --cli sfdx --method tarball","<%= config.bin %> <%= command.id %> --cli sf --method tarball","<%= config.bin %> <%= command.id %> --cli sf --method tarball --channel stable-rc"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to install","required":true,"multiple":false,"options":["sf","sfdx"]},"method":{"name":"method","type":"option","char":"m","summary":"the installation method to use","required":true,"multiple":false,"options":["installer","npm","tarball"]},"channel":{"name":"channel","type":"option","summary":"the channel to install from","multiple":false,"options":["legacy","stable","stable-rc","latest","latest-rc"],"default":"stable"},"output-file":{"name":"output-file","type":"option","summary":"the file to write the JSON results to (must be .json)","multiple":false,"default":"test-results.json"}},"args":[]},"cli:latestrc:build":{"id":"cli:latestrc:build","summary":"creates a PR to the repository property defined in the package.json to release a latest-rc build","description":"creates a PR to the repository property defined in the package.json to release a latest-rc build","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --patch","<%= config.bin %> <%= command.id %> --build-only","<%= config.bin %> <%= command.id %> --only @salesforce/plugin-source,@salesforce/plugin-info@1.2.3,@sf/config"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"rctag":{"name":"rctag","type":"option","summary":"the tag name that corresponds to the npm RC build, usually latest-rc or stable-rc","multiple":false,"default":"latest-rc"},"build-only":{"name":"build-only","type":"boolean","summary":"only build the latest rc, do not git add/commit/push","allowNo":false},"resolutions":{"name":"resolutions","type":"boolean","summary":"bump the versions of packages listed in the resolutions section","allowNo":true},"only":{"name":"only","type":"option","summary":"only bump the version of the packages passed in, uses latest if version is not provided","multiple":true},"pinned-deps":{"name":"pinned-deps","type":"boolean","summary":"bump the versions of the packages listed in the pinnedDependencies section","allowNo":true},"patch":{"name":"patch","type":"boolean","summary":"bump the release as a patch of an existing version, not a new minor version","allowNo":false},"snapshot":{"name":"snapshot","type":"boolean","summary":"update the snapshots and commit them to the PR","allowNo":false},"schema":{"name":"schema","type":"boolean","summary":"update the schemas and commit them to the PR","allowNo":false}},"args":[]},"cli:schemas:collect":{"id":"cli:schemas:collect","summary":"collect schemas from installed plugins","description":"collect schemas from installed plugins","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[]},"cli:schemas:compare":{"id":"cli:schemas:compare","summary":"compare schemas from installed plugins","description":"compare schemas from installed plugins","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[]},"cli:tarballs:prepare":{"id":"cli:tarballs:prepare","summary":"remove unnecessary files from node_modules","description":"remove unnecessary files from node_modules","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"only show what would be removed from node_modules","allowNo":false},"types":{"name":"types","type":"boolean","char":"t","summary":"remove all types (.d.ts) files from node_modules ","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"show all files paths being removed","allowNo":false}},"args":[]},"cli:tarballs:smoke":{"id":"cli:tarballs:smoke","summary":"smoke tests for the tarballed CLI\n Tests that the CLI and every command can be initialized.","description":"smoke tests for the tarballed CLI\n Tests that the CLI and every command can be initialized.","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to install","required":true,"multiple":false,"options":["sf","sfdx"]},"verbose":{"name":"verbose","type":"boolean","summary":"show the --help output for each command","allowNo":false}},"args":[]},"cli:tarballs:verify":{"id":"cli:tarballs:verify","summary":"verify that tarballs are ready to be uploaded","description":"verify that tarballs are ready to be uploaded","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to verify","helpValue":"(sf|sfdx)","multiple":false,"options":["sf","sfdx"],"default":"sfdx"},"windows-username-buffer":{"name":"windows-username-buffer","type":"option","char":"w","summary":"the number of characters to allow for windows usernames","multiple":false,"default":41}},"args":[]},"cli:versions:inspect":{"id":"cli:versions:inspect","summary":"inspect the CLI version across all install paths","description":"inspect the CLI version across all install paths","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -l archive -c stable","<%= config.bin %> <%= command.id %> -l archive -c stable-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable","<%= config.bin %> <%= command.id %> -l archive npm -c latest","<%= config.bin %> <%= command.id %> -l archive npm -c latest latest-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable stable-rc","<%= config.bin %> <%= command.id %> -l npm -c latest --salesforce","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/core","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/**/ salesforce-alm","<%= config.bin %> <%= command.id %> -l npm -c latest -d chalk -s"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dependencies":{"name":"dependencies","type":"option","char":"d","summary":"glob pattern of dependencies you want to see the version of","multiple":true},"salesforce":{"name":"salesforce","type":"boolean","char":"s","summary":"show versions of salesforce owned dependencies","allowNo":false},"channels":{"name":"channels","type":"option","char":"c","summary":"the channel you want to inspect (for achives, latest and latest-rc are translated to stable and stable-rc. And vice-versa for npm)","required":true,"multiple":true,"options":["legacy","stable","stable-rc","latest","latest-rc"]},"locations":{"name":"locations","type":"option","char":"l","summary":"the location you want to inspect","required":true,"multiple":true,"options":["archive","npm"]},"cli":{"name":"cli","type":"option","summary":"the CLI you want to inspect","required":true,"helpValue":"(sf|sfdx)","multiple":false,"options":["sf","sfdx"],"default":"sfdx"}},"args":[]},"npm:dependencies:pin":{"id":"npm:dependencies:pin","summary":"lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json","description":"lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, will not make any changes to the package.json","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","summary":"The name of the tag you want, e.g. 'latest-rc', or 'latest'","multiple":false,"default":"latest"}},"args":[]},"npm:package:promote":{"id":"npm:package:promote","summary":"promote an npm package","description":"promote an npm package","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --candidate latest-rc --target latest"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, only show what would happen","allowNo":false},"target":{"name":"target","type":"option","char":"t","summary":"the npm tag that you are promoting to","multiple":false,"default":"latest"},"candidate":{"name":"candidate","type":"option","char":"c","summary":"the npm tag that you want to promote","required":true,"multiple":false}},"args":[]},"npm:package:release":{"id":"npm:package:release","summary":"publish npm package","description":"publish npm package","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, will not commit changes to repo or push any tags","allowNo":false},"sign":{"name":"sign","type":"boolean","char":"s","summary":"If true, then the package will be signed and the signature will be uploaded to S3","allowNo":false},"npmtag":{"name":"npmtag","type":"option","char":"t","summary":"tag to use when publishing to npm","multiple":false,"default":"latest"},"npmaccess":{"name":"npmaccess","type":"option","char":"a","summary":"access level to use when publishing to npm","multiple":false,"default":"public"},"install":{"name":"install","type":"boolean","summary":"run yarn install and build on repository","allowNo":true},"prerelease":{"name":"prerelease","type":"option","summary":"determine the next version as <version>-<prerelease>.0 if version is not manually set","multiple":false},"verify":{"name":"verify","type":"boolean","summary":"verify npm registry has new version after publish and digital signature","allowNo":true},"githubtag":{"name":"githubtag","type":"option","summary":"given a github tag, release the version specified in the package.json as is. Useful when you've already done a release and only need npm publish features","multiple":false}},"args":[]},"npm:release:validate":{"id":"npm:release:validate","summary":"inspects the git commits to see if there are any commits that will warrant a new release","description":"inspects the git commits to see if there are any commits that will warrant a new release","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"show all commits for all packages (only works with --json flag)","allowNo":false}},"args":[]}}}
1
+ {"version":"3.8.0","commands":{"channel:promote":{"id":"channel:promote","summary":"promote a s3 channel","description":"promote a s3 channel","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --candidate latest-rc --target latest --platform win --platform mac"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, only show what would happen","allowNo":false},"promote-to-channel":{"name":"promote-to-channel","type":"option","char":"t","summary":"the channel name that you are promoting to","required":true,"multiple":false,"default":"stable","aliases":["target"]},"promote-from-channel":{"name":"promote-from-channel","type":"option","char":"C","summary":"the channel name that you want to promote","multiple":false,"aliases":["candidate"]},"platform":{"name":"platform","type":"option","char":"p","summary":"the platform to promote","multiple":true,"options":["win","macos","deb"]},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli name to promote","required":true,"helpValue":"(sf|sfdx)","multiple":false,"options":["sf","sfdx"]},"sha":{"name":"sha","type":"option","char":"s","summary":"the short sha to promote","multiple":false},"max-age":{"name":"max-age","type":"option","char":"m","summary":"cache control max-age in seconds","multiple":false,"default":300,"aliases":["maxage"]},"indexes":{"name":"indexes","type":"boolean","char":"i","summary":"append the promoted urls into the index files","allowNo":true},"xz":{"name":"xz","type":"boolean","char":"x","summary":"also upload xz","allowNo":true},"architecture-target":{"name":"architecture-target","type":"option","char":"T","summary":"comma-separated targets to promote (e.g.: linux-arm,win32-x64)","multiple":true,"options":["linux-x64","linux-arm","win32-x64","win32-x86","darwin-x64"],"aliases":["targets"]},"version":{"name":"version","type":"option","char":"v","summary":"the version of the candidate to be promoted, which must exist already in s3. Used to fetch the correct sha","multiple":false}},"args":[]},"cli:releasenotes":{"id":"cli:releasenotes","summary":"pull all relevant information for writing release notes.\n Requires the GH_TOKEN to be set in the environment.","description":"pull all relevant information for writing release notes.\n Requires the GH_TOKEN to be set in the environment.","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sf","<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf --since 1.0.0","<%= config.bin %> <%= command.id %> --cli sfdx --since 7.19.0","<%= config.bin %> <%= command.id %> --cli sf > changes.txt","<%= config.bin %> <%= command.id %> --cli sf --markdown > changes.md"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to pull information for","required":true,"multiple":false,"options":["sf","sfdx"]},"since":{"name":"since","type":"option","char":"s","summary":"the version number of the previous release. Defaults to the latest-rc version on npm","multiple":false},"markdown":{"name":"markdown","type":"boolean","char":"m","summary":"format the output in markdown","allowNo":false}},"args":[]},"dependabot:automerge":{"id":"dependabot:automerge","summary":"automatically merge one green, mergeable PR up to the specified maximum bump type","description":"automatically merge one green, mergeable PR up to the specified maximum bump type","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"owner":{"name":"owner","type":"option","char":"o","summary":"the organization that the repository belongs to. This defaults to the owner specified in the package.json","multiple":false,"dependsOn":["repo"]},"repo":{"name":"repo","type":"option","char":"r","summary":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json","multiple":false,"dependsOn":["owner"]},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"multiple":false,"options":["major","minor","patch"],"default":"minor"},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"skip-ci":{"name":"skip-ci","type":"boolean","char":"s","summary":"add [skip ci] to the merge commit title","allowNo":false},"merge-method":{"name":"merge-method","type":"option","summary":"merge method to use","multiple":false,"options":["merge","squash","rebase"],"default":"merge"}},"args":[]},"dependabot:consolidate":{"id":"dependabot:consolidate","summary":"consolidate dependabot PRs into a single PR","description":"consolidate dependabot PRs into a single PR","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --max-version-bump patch","<%= config.bin %> <%= command.id %> --max-version-bump minor","<%= config.bin %> <%= command.id %> --max-version-bump major"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"max-version-bump":{"name":"max-version-bump","type":"option","char":"m","description":"the maximum version bump you want to be included","required":true,"multiple":false,"options":["major","minor","patch"],"default":"minor"},"base-branch":{"name":"base-branch","type":"option","char":"b","summary":"name of the base branch for merging","required":true,"multiple":false,"default":"main"},"target-branch":{"name":"target-branch","type":"option","char":"t","summary":"name of the target branch for merging","required":true,"multiple":false,"default":"consolidate-dependabot"},"ignore":{"name":"ignore","type":"option","summary":"ignore any PRs with titles that include this value","multiple":true},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"only show what would happen if you consolidated dependabot PRs","allowNo":false},"no-pr":{"name":"no-pr","type":"boolean","summary":"do everything but create the PR","allowNo":false},"owner":{"name":"owner","type":"option","char":"o","summary":"the organization that the repository belongs to. This defaults to the owner specified in the package.json","multiple":false},"repo":{"name":"repo","type":"option","char":"r","summary":"the repository you want to consolidate PRs on. This defaults to the repository specified in the package.json","multiple":false,"dependsOn":["owner"]}},"args":[]},"repositories":{"id":"repositories","summary":"list repositories owned and supported by Salesforce CLI\nFor more information on the list of repositories, visit https://github.com/salesforcecli/status.","description":"list repositories owned and supported by Salesforce CLI\nFor more information on the list of repositories, visit https://github.com/salesforcecli/status.","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --columns=url --filter='Name=sfdx-core' --no-header | xargs open","<%= config.bin %> <%= command.id %> --json | jq -r '.result[] | select(.name==\"sfdx-core\") | .packages[] | .url"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"columns":{"name":"columns","type":"option","description":"only show provided columns (comma-separated)","multiple":false,"exclusive":["extended"]},"sort":{"name":"sort","type":"option","description":"property to sort by (prepend '-' for descending)","multiple":false},"filter":{"name":"filter","type":"option","description":"filter property by partial string matching, ex: name=foo","multiple":false},"csv":{"name":"csv","type":"boolean","description":"output is csv format [alias: --output=csv]","allowNo":false,"exclusive":["no-truncate"]},"output":{"name":"output","type":"option","description":"output in a more machine friendly format","multiple":false,"options":["csv","json","yaml"],"exclusive":["no-truncate","csv"]},"extended":{"name":"extended","type":"boolean","char":"x","description":"show extra columns","allowNo":false,"exclusive":["columns"]},"no-truncate":{"name":"no-truncate","type":"boolean","description":"do not truncate output to fit screen","allowNo":false,"exclusive":["csv"]},"no-header":{"name":"no-header","type":"boolean","description":"hide table header from output","allowNo":false,"exclusive":["csv"]}},"args":[]},"typescript:update":{"id":"typescript:update","summary":"Runs tests with updated typescript version and ES target","description":"Runs tests with updated typescript version and ES target","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"version":{"name":"version","type":"option","char":"v","summary":"Specify the typescript version you'd like to update to. Defaults to latest if not specified","multiple":false,"default":"latest"},"target":{"name":"target","type":"option","char":"t","summary":"Specify the ES target you'd like to use. Defaults to ESNext if not specified","multiple":false,"default":"ESNext"}},"args":[]},"cli:install:test":{"id":"cli:install:test","summary":"install sf or sfdx","description":"install sf or sfdx","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sfdx --method installer","<%= config.bin %> <%= command.id %> --cli sfdx --method npm","<%= config.bin %> <%= command.id %> --cli sfdx --method tarball","<%= config.bin %> <%= command.id %> --cli sf --method tarball","<%= config.bin %> <%= command.id %> --cli sf --method tarball --channel stable-rc"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to install","required":true,"multiple":false,"options":["sf","sfdx"]},"method":{"name":"method","type":"option","char":"m","summary":"the installation method to use","required":true,"multiple":false,"options":["installer","npm","tarball"]},"channel":{"name":"channel","type":"option","summary":"the channel to install from","multiple":false,"options":["legacy","stable","stable-rc","latest","latest-rc"],"default":"stable"},"output-file":{"name":"output-file","type":"option","summary":"the file to write the JSON results to (must be .json)","multiple":false,"default":"test-results.json"}},"args":[]},"cli:release:build":{"id":"cli:release:build","summary":"builds a new release from a designated starting point and optionally creates PR in Github","description":"builds a new release from a designated starting point and optionally creates PR in Github","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":["cli:latestrc:build"],"examples":["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --patch","<%= config.bin %> <%= command.id %> --start-from-npm-dist-tag latest-rc --patch","<%= config.bin %> <%= command.id %> --start-from-github-ref 7.144.0","<%= config.bin %> <%= command.id %> --start-from-github-ref main","<%= config.bin %> <%= command.id %> --start-from-github-ref f476e8e","<%= config.bin %> <%= command.id %> --start-from-github-ref main --prerelease beta","<%= config.bin %> <%= command.id %> --build-only","<%= config.bin %> <%= command.id %> --only @salesforce/plugin-source,@salesforce/plugin-info@1.2.3,@sf/config"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"start-from-npm-dist-tag":{"name":"start-from-npm-dist-tag","type":"option","char":"d","summary":"the npm dist-tag to start the release from, examples: nightly, latest-rc","multiple":false,"aliases":["rctag"]},"start-from-github-ref":{"name":"start-from-github-ref","type":"option","char":"g","summary":"a Github ref to start the release from, examples: main, 7.144.0, f476e8e","multiple":false},"build-only":{"name":"build-only","type":"boolean","summary":"only build the release, do not git add/commit/push","allowNo":false},"resolutions":{"name":"resolutions","type":"boolean","summary":"bump the versions of packages listed in the resolutions section","allowNo":true},"only":{"name":"only","type":"option","summary":"only bump the version of the packages passed in, uses latest if version is not provided","multiple":true},"pinned-deps":{"name":"pinned-deps","type":"boolean","summary":"bump the versions of the packages listed in the pinnedDependencies section","allowNo":true},"patch":{"name":"patch","type":"boolean","summary":"bump the release as a patch of an existing version, not a new minor version","allowNo":false,"exclusive":["prerelease"]},"prerelease":{"name":"prerelease","type":"option","summary":"name of the prerelease to create, examples: dev, alpha","multiple":false,"exclusive":["patch"]},"snapshot":{"name":"snapshot","type":"boolean","summary":"update the snapshots and commit them to the PR","allowNo":false},"schema":{"name":"schema","type":"boolean","summary":"update the schemas and commit them to the PR","allowNo":false}},"args":[]},"cli:schemas:collect":{"id":"cli:schemas:collect","summary":"collect schemas from installed plugins","description":"collect schemas from installed plugins","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[]},"cli:schemas:compare":{"id":"cli:schemas:compare","summary":"compare schemas from installed plugins","description":"compare schemas from installed plugins","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false}},"args":[]},"cli:tarballs:prepare":{"id":"cli:tarballs:prepare","summary":"remove unnecessary files from node_modules","description":"remove unnecessary files from node_modules","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"only show what would be removed from node_modules","allowNo":false},"types":{"name":"types","type":"boolean","char":"t","summary":"remove all types (.d.ts) files from node_modules ","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"show all files paths being removed","allowNo":false}},"args":[]},"cli:tarballs:smoke":{"id":"cli:tarballs:smoke","summary":"smoke tests for the tarballed CLI\n Tests that the CLI and every command can be initialized.","description":"smoke tests for the tarballed CLI\n Tests that the CLI and every command can be initialized.","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to install","required":true,"multiple":false,"options":["sf","sfdx"]},"verbose":{"name":"verbose","type":"boolean","summary":"show the --help output for each command","allowNo":false}},"args":[]},"cli:tarballs:verify":{"id":"cli:tarballs:verify","summary":"verify that tarballs are ready to be uploaded","description":"verify that tarballs are ready to be uploaded","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %>","<%= config.bin %> <%= command.id %> --cli sfdx","<%= config.bin %> <%= command.id %> --cli sf"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"cli":{"name":"cli","type":"option","char":"c","summary":"the cli to verify","helpValue":"(sf|sfdx)","multiple":false,"options":["sf","sfdx"],"default":"sfdx"},"windows-username-buffer":{"name":"windows-username-buffer","type":"option","char":"w","summary":"the number of characters to allow for windows usernames","multiple":false,"default":41}},"args":[]},"cli:versions:inspect":{"id":"cli:versions:inspect","summary":"inspect the CLI version across all install paths","description":"inspect the CLI version across all install paths","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> -l archive -c stable","<%= config.bin %> <%= command.id %> -l archive -c stable-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable","<%= config.bin %> <%= command.id %> -l archive npm -c latest","<%= config.bin %> <%= command.id %> -l archive npm -c latest latest-rc","<%= config.bin %> <%= command.id %> -l archive npm -c stable stable-rc","<%= config.bin %> <%= command.id %> -l npm -c latest --salesforce","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/core","<%= config.bin %> <%= command.id %> -l npm -c latest -d @salesforce/**/ salesforce-alm","<%= config.bin %> <%= command.id %> -l npm -c latest -d chalk -s"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dependencies":{"name":"dependencies","type":"option","char":"d","summary":"glob pattern of dependencies you want to see the version of","multiple":true},"salesforce":{"name":"salesforce","type":"boolean","char":"s","summary":"show versions of salesforce owned dependencies","allowNo":false},"channels":{"name":"channels","type":"option","char":"c","summary":"the channel you want to inspect (for achives, latest and latest-rc are translated to stable and stable-rc. And vice-versa for npm)","required":true,"multiple":true,"options":["legacy","stable","stable-rc","latest","latest-rc"]},"locations":{"name":"locations","type":"option","char":"l","summary":"the location you want to inspect","required":true,"multiple":true,"options":["archive","npm"]},"cli":{"name":"cli","type":"option","summary":"the CLI you want to inspect","required":true,"helpValue":"(sf|sfdx)","multiple":false,"options":["sf","sfdx"],"default":"sfdx"}},"args":[]},"npm:dependencies:pin":{"id":"npm:dependencies:pin","summary":"lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json","description":"lock a list of dependencies to a target tag or default to 'latest', place these entries in 'pinnedDependencies' entry in the package.json","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, will not make any changes to the package.json","allowNo":false},"tag":{"name":"tag","type":"option","char":"t","summary":"The name of the tag you want, e.g. 'latest-rc', or 'latest'","multiple":false,"default":"latest"}},"args":[]},"npm:package:promote":{"id":"npm:package:promote","summary":"promote an npm package","description":"promote an npm package","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"examples":["<%= config.bin %> <%= command.id %> --candidate latest-rc --target latest"],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, only show what would happen","allowNo":false},"target":{"name":"target","type":"option","char":"t","summary":"the npm tag that you are promoting to","multiple":false,"default":"latest"},"candidate":{"name":"candidate","type":"option","char":"c","summary":"the npm tag that you want to promote","required":true,"multiple":false}},"args":[]},"npm:package:release":{"id":"npm:package:release","summary":"publish npm package","description":"publish npm package","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"dryrun":{"name":"dryrun","type":"boolean","char":"d","summary":"If true, will not commit changes to repo or push any tags","allowNo":false},"sign":{"name":"sign","type":"boolean","char":"s","summary":"If true, then the package will be signed and the signature will be uploaded to S3","allowNo":false},"npmtag":{"name":"npmtag","type":"option","char":"t","summary":"tag to use when publishing to npm","multiple":false,"default":"latest"},"npmaccess":{"name":"npmaccess","type":"option","char":"a","summary":"access level to use when publishing to npm","multiple":false,"default":"public"},"install":{"name":"install","type":"boolean","summary":"run yarn install and build on repository","allowNo":true},"prerelease":{"name":"prerelease","type":"option","summary":"determine the next version as <version>-<prerelease>.0 if version is not manually set","multiple":false},"verify":{"name":"verify","type":"boolean","summary":"verify npm registry has new version after publish and digital signature","allowNo":true},"githubtag":{"name":"githubtag","type":"option","summary":"given a github tag, release the version specified in the package.json as is. Useful when you've already done a release and only need npm publish features","multiple":false}},"args":[]},"npm:release:validate":{"id":"npm:release:validate","summary":"inspects the git commits to see if there are any commits that will warrant a new release","description":"inspects the git commits to see if there are any commits that will warrant a new release","strict":true,"pluginName":"@salesforce/plugin-release-management","pluginAlias":"@salesforce/plugin-release-management","pluginType":"core","aliases":[],"flags":{"json":{"name":"json","type":"boolean","description":"Format output as json.","helpGroup":"GLOBAL","allowNo":false},"verbose":{"name":"verbose","type":"boolean","summary":"show all commits for all packages (only works with --json flag)","allowNo":false}},"args":[]}}}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@salesforce/plugin-release-management",
3
3
  "description": "A plugin for preparing and publishing npm packages",
4
- "version": "3.7.10",
4
+ "version": "3.8.0",
5
5
  "author": "Salesforce",
6
6
  "bugs": "https://github.com/forcedotcom/cli/issues",
7
7
  "bin": {
@@ -111,7 +111,7 @@
111
111
  "install": {
112
112
  "description": "utilities for CLI installation"
113
113
  },
114
- "latestrc": {
114
+ "release": {
115
115
  "description": "utilities for building CLI releases"
116
116
  },
117
117
  "schemas": {
@@ -181,7 +181,7 @@
181
181
  "access": "public"
182
182
  },
183
183
  "sfdx": {
184
- "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.7.10.crt",
185
- "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.7.10.sig"
184
+ "publicKeyUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.8.0.crt",
185
+ "signatureUrl": "https://developer.salesforce.com/media/salesforce-cli/security/@salesforce/plugin-release-management/3.8.0.sig"
186
186
  }
187
187
  }
@@ -1,142 +0,0 @@
1
- "use strict";
2
- /*
3
- * Copyright (c) 2020, salesforce.com, inc.
4
- * All rights reserved.
5
- * Licensed under the BSD 3-Clause license.
6
- * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
7
- */
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- const sf_plugins_core_1 = require("@salesforce/sf-plugins-core");
10
- const shelljs_1 = require("shelljs");
11
- const ts_types_1 = require("@salesforce/ts-types");
12
- const kit_1 = require("@salesforce/kit");
13
- const core_1 = require("@octokit/core");
14
- const chalk_1 = require("chalk");
15
- const core_2 = require("@salesforce/core");
16
- const repository_1 = require("../../../repository");
17
- core_2.Messages.importMessagesDirectory(__dirname);
18
- const messages = core_2.Messages.loadMessages('@salesforce/plugin-release-management', 'cli.latestrc.build');
19
- class build extends sf_plugins_core_1.SfCommand {
20
- async run() {
21
- let auth;
22
- const { flags } = await this.parse(build);
23
- const pushChangesToGitHub = !flags['build-only'];
24
- if (pushChangesToGitHub) {
25
- auth = (0, ts_types_1.ensureString)(new kit_1.Env().getString('GH_TOKEN') ?? new kit_1.Env().getString('GITHUB_TOKEN'), 'The GH_TOKEN env var is required to push changes to GitHub. Use the --build-only flag to skip GitHub operations (a manual push will then be needed)');
26
- }
27
- // get the current version and implement the patch version for a default rc build
28
- const repo = await repository_1.PackageRepo.create({ ux: new sf_plugins_core_1.Ux({ jsonEnabled: this.jsonEnabled() }) });
29
- const nextRCVersion = repo.package.getNextRCVersion(flags.rctag, flags.patch);
30
- repo.nextVersion = nextRCVersion;
31
- this.log(`starting on main and will checkout ${repo.nextVersion}`);
32
- // start the latest-rc build process on a clean main branch
33
- this.exec('git checkout main');
34
- this.exec('git pull');
35
- this.exec(`git checkout -b ${nextRCVersion}`);
36
- // bump the version in the pjson to the new latest-rc
37
- this.log(`setting the version to ${nextRCVersion}`);
38
- repo.package.setNextVersion(nextRCVersion);
39
- repo.package.packageJson.version = nextRCVersion;
40
- if (flags.only) {
41
- this.log(`bumping the following dependencies only: ${flags.only.join(', ')}`);
42
- const bumped = repo.package.bumpDependencyVersions(flags.only);
43
- if (!bumped.length) {
44
- throw new core_2.SfError('No version changes made. Confirm you are passing the correct dependency and version to --only.');
45
- }
46
- }
47
- else {
48
- // bump resolution deps
49
- if (flags.resolutions) {
50
- this.log('bumping resolutions in the package.json to their "latest"');
51
- repo.package.bumpResolutions('latest');
52
- }
53
- // pin the pinned dependencies
54
- if (flags['pinned-deps']) {
55
- this.log('pinning dependencies in pinnedDependencies to "latest-rc"');
56
- repo.package.pinDependencyVersions('latest-rc');
57
- }
58
- }
59
- repo.package.writePackageJson();
60
- this.exec('yarn install');
61
- // streamline the lockfile
62
- this.exec('npx yarn-deduplicate');
63
- if (flags.snapshot) {
64
- this.log('updating snapshots');
65
- this.exec(`./bin/${repo.name === 'sfdx-cli' ? 'dev.sh' : 'dev'} snapshot:generate`, { silent: false });
66
- }
67
- if (flags.schema) {
68
- this.log('updating schema');
69
- this.exec('sf-release cli:schemas:collect', { silent: false });
70
- }
71
- if (pushChangesToGitHub) {
72
- const octokit = new core_1.Octokit({ auth });
73
- await this.maybeSetGitConfig(octokit);
74
- // commit package.json/yarn.lock and potentially command-snapshot changes
75
- this.exec('git add .');
76
- this.exec(`git commit -m "chore(latest-rc): bump to ${nextRCVersion}"`);
77
- this.exec(`git push --set-upstream origin ${nextRCVersion} --no-verify`, { silent: false });
78
- const repoOwner = repo.package.packageJson.repository.split('/')[0];
79
- const repoName = repo.package.packageJson.repository.split('/')[1];
80
- await octokit.request(`POST /repos/${repoOwner}/${repoName}/pulls`, {
81
- owner: repoOwner,
82
- repo: repoName,
83
- head: nextRCVersion,
84
- base: 'main',
85
- title: `Release v${nextRCVersion} as latest-rc`,
86
- body: 'Building latest-rc [skip-validate-pr]',
87
- });
88
- }
89
- }
90
- exec(cmd, options = { silent: true }) {
91
- this.log((0, chalk_1.bold)(cmd));
92
- (0, shelljs_1.exec)(cmd, options);
93
- }
94
- async maybeSetGitConfig(octokit) {
95
- const username = (0, shelljs_1.exec)('git config user.name', { silent: true }).stdout.trim();
96
- const email = (0, shelljs_1.exec)('git config user.email', { silent: true }).stdout.trim();
97
- if (!username || !email) {
98
- const user = await octokit.request('GET /user');
99
- if (!username)
100
- this.exec(`git config user.name "${user.data.name}"`);
101
- if (!email)
102
- this.exec(`git config user.email "${user.data.email}"`);
103
- }
104
- }
105
- }
106
- exports.default = build;
107
- build.description = messages.getMessage('description');
108
- build.summary = messages.getMessage('description');
109
- build.examples = messages.getMessages('examples');
110
- build.flags = {
111
- rctag: sf_plugins_core_1.Flags.string({
112
- summary: messages.getMessage('flags.rctag'),
113
- default: 'latest-rc',
114
- }),
115
- 'build-only': sf_plugins_core_1.Flags.boolean({
116
- summary: messages.getMessage('flags.buildOnly'),
117
- default: false,
118
- }),
119
- resolutions: sf_plugins_core_1.Flags.boolean({
120
- summary: messages.getMessage('flags.resolutions'),
121
- default: true,
122
- allowNo: true,
123
- }),
124
- only: (0, sf_plugins_core_1.arrayWithDeprecation)({
125
- summary: messages.getMessage('flags.only'),
126
- }),
127
- 'pinned-deps': sf_plugins_core_1.Flags.boolean({
128
- summary: messages.getMessage('flags.pinnedDeps'),
129
- default: true,
130
- allowNo: true,
131
- }),
132
- patch: sf_plugins_core_1.Flags.boolean({
133
- summary: messages.getMessage('flags.patch'),
134
- }),
135
- snapshot: sf_plugins_core_1.Flags.boolean({
136
- summary: messages.getMessage('flags.snapshot'),
137
- }),
138
- schema: sf_plugins_core_1.Flags.boolean({
139
- summary: messages.getMessage('flags.schema'),
140
- }),
141
- };
142
- //# sourceMappingURL=build.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../src/commands/cli/latestrc/build.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;AAEH,iEAAyF;AACzF,qCAA4C;AAC5C,mDAAoD;AACpD,yCAAsC;AACtC,wCAAwC;AACxC,iCAA6B;AAC7B,2CAAqD;AACrD,oDAAkD;AAElD,eAAQ,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;AAC5C,MAAM,QAAQ,GAAG,eAAQ,CAAC,YAAY,CAAC,uCAAuC,EAAE,oBAAoB,CAAC,CAAC;AAEtG,MAAqB,KAAM,SAAQ,2BAAe;IAqCzC,KAAK,CAAC,GAAG;QACd,IAAI,IAAY,CAAC;QACjB,MAAM,EAAE,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAE1C,MAAM,mBAAmB,GAAG,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAEjD,IAAI,mBAAmB,EAAE;YACvB,IAAI,GAAG,IAAA,uBAAY,EACjB,IAAI,SAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,IAAI,SAAG,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,EACtE,qJAAqJ,CACtJ,CAAC;SACH;QAED,iFAAiF;QACjF,MAAM,IAAI,GAAG,MAAM,wBAAW,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,IAAI,oBAAE,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAA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OAAO,EAAE,QAAQ,CAAC,UAAU,CAAC,cAAc,CAAC;KAC7C,CAAC;CACH,CAAC"}
@@ -1,19 +0,0 @@
1
- {
2
- "description": "creates a PR to the repository property defined in the package.json to release a latest-rc build",
3
- "examples": [
4
- "<%= config.bin %> <%= command.id %>",
5
- "<%= config.bin %> <%= command.id %> --patch",
6
- "<%= config.bin %> <%= command.id %> --build-only",
7
- "<%= config.bin %> <%= command.id %> --only @salesforce/plugin-source,@salesforce/plugin-info@1.2.3,@sf/config"
8
- ],
9
- "flags": {
10
- "rctag": "the tag name that corresponds to the npm RC build, usually latest-rc or stable-rc",
11
- "resolutions": "bump the versions of packages listed in the resolutions section",
12
- "pinnedDeps": "bump the versions of the packages listed in the pinnedDependencies section",
13
- "only": "only bump the version of the packages passed in, uses latest if version is not provided",
14
- "patch": "bump the release as a patch of an existing version, not a new minor version",
15
- "buildOnly": "only build the latest rc, do not git add/commit/push",
16
- "snapshot": "update the snapshots and commit them to the PR",
17
- "schema": "update the schemas and commit them to the PR"
18
- }
19
- }