@simplysf/simply-cicd 0.26.0 → 0.27.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.
- package/README.md +79 -68
- package/lib/commands/simply/cicd/build/create-fallback-tag.d.ts +1 -1
- package/lib/commands/simply/cicd/build/create-package-version.d.ts +1 -1
- package/lib/commands/simply/cicd/build/generate-flexipage-diff.d.ts +1 -1
- package/lib/commands/simply/cicd/build/generate-flow-diff.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/project/install-packaged.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/project/post-deploy.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/project/post-destructive.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/project/pre-destructive.d.ts +1 -1
- package/lib/commands/simply/cicd/deploy/project/run-apex-tests.d.ts +1 -1
- package/lib/commands/simply/cicd/notify/build.d.ts +2 -2
- package/lib/commands/simply/cicd/notify/happy-soup.d.ts +2 -2
- package/lib/commands/simply/cicd/notify/project.d.ts +2 -2
- package/lib/commands/simply/cicd/sfdx-dependabot.d.ts +2 -2
- package/lib/commands/simply/cicd/sfdx-dependabot.js +4 -4
- package/lib/commands/simply/cicd/sfdx-dependabot.js.map +1 -1
- package/lib/common/build/flags.d.ts +2 -3
- package/lib/common/deploy/flags.d.ts +1 -2
- package/lib/common/deploy/stageCommand.d.ts +2 -2
- package/messages/simply.cicd.build.create-fallback-tag.md +1 -1
- package/messages/simply.cicd.build.create-package-version.md +1 -1
- package/messages/simply.cicd.build.create-scratch.md +1 -1
- package/messages/simply.cicd.build.delete-scratch.md +1 -1
- package/messages/simply.cicd.build.determine-package-changes.md +1 -1
- package/messages/simply.cicd.build.install-dependencies.md +1 -1
- package/messages/simply.cicd.build.publish-utam-page-objects.md +5 -5
- package/messages/simply.cicd.build.push-scratch.md +1 -1
- package/messages/simply.cicd.build.test-scratch.md +1 -1
- package/messages/simply.cicd.sfdx-dependabot.md +2 -2
- package/oclif.manifest.json +107 -107
- package/package.json +3 -3
package/oclif.manifest.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"simply:cicd:sfdx-dependabot": {
|
|
4
4
|
"aliases": [],
|
|
5
5
|
"args": {},
|
|
6
|
-
"description": "Discovers repositories under a group or organization, reads each one's `sfdx-project.json`, and for any repository that both depends on the released package and has opted in via the `
|
|
6
|
+
"description": "Discovers repositories under a group or organization, reads each one's `sfdx-project.json`, and for any repository that both depends on the released package and has opted in via the `SIMPLY_CICD_SFDX_DEPENDABOT_ENABLED=TRUE` repository-level CI variable (the deprecated `SFDX_DEPENDABOT_ENABLED=TRUE` still works, with a warning, until a future release), opens (or updates) a change request bumping the dependency to the newly released version.\n\nEach eligible repository must explicitly opt in — this command never touches a downstream repository's dependencies without that variable set.\n\nEvery flag can also be set through the `SIMPLY_CICD_` environment variable shown in its help. The older `SFDX_DEPENDABOT_*` variables (and `PACKAGING_DEVHUB_USERNAME` for `--devhub-username`) are deprecated: they are still read when neither the flag nor its `SIMPLY_CICD_` variable is set, with a warning, and will be removed in a future release.",
|
|
7
7
|
"examples": [
|
|
8
8
|
"<%= config.bin %> <%= command.id %> --root-group-id 12345 --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --devhub-username hub@example.com --dry-run",
|
|
9
9
|
"<%= config.bin %> <%= command.id %> --root-group-id 12345 --subscriber-package-version-id 04tXXXXXXXXXXXXXXX --devhub-username hub@example.com --branch-prefix devops/dependabot --change-request-labels dependencies",
|
|
@@ -183,6 +183,100 @@
|
|
|
183
183
|
"sfdx-dependabot:cicd:simply"
|
|
184
184
|
]
|
|
185
185
|
},
|
|
186
|
+
"simply:cicd:deploy:validate": {
|
|
187
|
+
"aliases": [],
|
|
188
|
+
"args": {},
|
|
189
|
+
"description": "Validates the deployment config file (`deploy.json`) and deployment rules file independently against their schemas. A missing file is skipped with a warning; a malformed or schema-invalid file fails the command.\n\nThis is the generic form of the command, with no namespace-specific default file paths — see `deploy project validate` and `deploy happy-soup validate` for versions with sensible defaults for those deployment styles.",
|
|
190
|
+
"examples": [
|
|
191
|
+
"<%= config.bin %> <%= command.id %> --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json"
|
|
192
|
+
],
|
|
193
|
+
"flags": {
|
|
194
|
+
"json": {
|
|
195
|
+
"description": "Format output as json.",
|
|
196
|
+
"helpGroup": "GLOBAL",
|
|
197
|
+
"name": "json",
|
|
198
|
+
"allowNo": false,
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"flags-dir": {
|
|
202
|
+
"helpGroup": "GLOBAL",
|
|
203
|
+
"name": "flags-dir",
|
|
204
|
+
"summary": "Import flag values from a directory.",
|
|
205
|
+
"hasDynamicHelp": false,
|
|
206
|
+
"multiple": false,
|
|
207
|
+
"type": "option"
|
|
208
|
+
},
|
|
209
|
+
"deploy-config-file": {
|
|
210
|
+
"env": "SIMPLY_CICD_DEPLOY_CONFIG_FILE",
|
|
211
|
+
"name": "deploy-config-file",
|
|
212
|
+
"summary": "Path to the deployment configuration file.",
|
|
213
|
+
"hasDynamicHelp": false,
|
|
214
|
+
"multiple": false,
|
|
215
|
+
"type": "option"
|
|
216
|
+
},
|
|
217
|
+
"deploy-rules-file": {
|
|
218
|
+
"env": "SIMPLY_CICD_DEPLOY_RULES_FILE",
|
|
219
|
+
"name": "deploy-rules-file",
|
|
220
|
+
"summary": "Path to the deployment rules file.",
|
|
221
|
+
"hasDynamicHelp": false,
|
|
222
|
+
"multiple": false,
|
|
223
|
+
"type": "option"
|
|
224
|
+
},
|
|
225
|
+
"source-branch-name": {
|
|
226
|
+
"env": "SIMPLY_CICD_SOURCE_BRANCH_NAME",
|
|
227
|
+
"name": "source-branch-name",
|
|
228
|
+
"summary": "The source branch name for the deployment, used to derive the deployment config file path if --deploy-config-file is not provided.",
|
|
229
|
+
"hasDynamicHelp": false,
|
|
230
|
+
"multiple": false,
|
|
231
|
+
"type": "option"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"hasDynamicHelp": false,
|
|
235
|
+
"hiddenAliases": [],
|
|
236
|
+
"id": "simply:cicd:deploy:validate",
|
|
237
|
+
"pluginAlias": "@simplysf/simply-cicd",
|
|
238
|
+
"pluginName": "@simplysf/simply-cicd",
|
|
239
|
+
"pluginType": "core",
|
|
240
|
+
"strict": true,
|
|
241
|
+
"summary": "Validate deployment configuration files against their JSON schemas.",
|
|
242
|
+
"enableJsonFlag": true,
|
|
243
|
+
"isESM": true,
|
|
244
|
+
"relativePath": [
|
|
245
|
+
"lib",
|
|
246
|
+
"commands",
|
|
247
|
+
"simply",
|
|
248
|
+
"cicd",
|
|
249
|
+
"deploy",
|
|
250
|
+
"validate.js"
|
|
251
|
+
],
|
|
252
|
+
"aliasPermutations": [],
|
|
253
|
+
"permutations": [
|
|
254
|
+
"simply:cicd:deploy:validate",
|
|
255
|
+
"cicd:simply:deploy:validate",
|
|
256
|
+
"cicd:deploy:simply:validate",
|
|
257
|
+
"cicd:deploy:validate:simply",
|
|
258
|
+
"simply:deploy:cicd:validate",
|
|
259
|
+
"deploy:simply:cicd:validate",
|
|
260
|
+
"deploy:cicd:simply:validate",
|
|
261
|
+
"deploy:cicd:validate:simply",
|
|
262
|
+
"simply:deploy:validate:cicd",
|
|
263
|
+
"deploy:simply:validate:cicd",
|
|
264
|
+
"deploy:validate:simply:cicd",
|
|
265
|
+
"deploy:validate:cicd:simply",
|
|
266
|
+
"simply:cicd:validate:deploy",
|
|
267
|
+
"cicd:simply:validate:deploy",
|
|
268
|
+
"cicd:validate:simply:deploy",
|
|
269
|
+
"cicd:validate:deploy:simply",
|
|
270
|
+
"simply:validate:cicd:deploy",
|
|
271
|
+
"validate:simply:cicd:deploy",
|
|
272
|
+
"validate:cicd:simply:deploy",
|
|
273
|
+
"validate:cicd:deploy:simply",
|
|
274
|
+
"simply:validate:deploy:cicd",
|
|
275
|
+
"validate:simply:deploy:cicd",
|
|
276
|
+
"validate:deploy:simply:cicd",
|
|
277
|
+
"validate:deploy:cicd:simply"
|
|
278
|
+
]
|
|
279
|
+
},
|
|
186
280
|
"simply:cicd:build:check-permission-sets": {
|
|
187
281
|
"aliases": [],
|
|
188
282
|
"args": {},
|
|
@@ -362,7 +456,7 @@
|
|
|
362
456
|
"simply:cicd:build:create-fallback-tag": {
|
|
363
457
|
"aliases": [],
|
|
364
458
|
"args": {},
|
|
365
|
-
"description": "Resolves the last tag to increment (either `--last-tag`, or the closest reachable tag matching the project's version prefix), extracts its annotated `04t` package version ID, and creates/pushes a new tag with an incremented numeric suffix (e.g. `v1.2.3.4` -> `v1.2.3.4-1` -> `v1.2.3.4-2`) annotated with that same package ID. Tags are matched and parsed in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, so only a counter after the formatted version is incremented — with `v{MAJOR}.{MINOR}.{PATCH}-{BUILD}`, `v1.2.3-4` becomes `v1.2.3-4-1`, never `v1.2.3-5`. Soft no-ops (does not error) when no last tag, or no valid package ID within it, can be found — a build with nothing to fall back to just has nothing to do here.\n\nAlso soft no-ops when HEAD already carries a tag matching the version prefix, e.g. because `build create-package-version` just created and tagged a real package version earlier in the same job. This also keeps a retried job from adding a second fallback tag to the same commit.\n\nSkipped automatically when `PACKAGE_CHANGED=TRUE` is set in the environment (see `build determine-package-changes`) — a real package version will be created instead.",
|
|
459
|
+
"description": "Resolves the last tag to increment (either `--last-tag`, or the closest reachable tag matching the project's version prefix), extracts its annotated `04t` package version ID, and creates/pushes a new tag with an incremented numeric suffix (e.g. `v1.2.3.4` -> `v1.2.3.4-1` -> `v1.2.3.4-2`) annotated with that same package ID. Tags are matched and parsed in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, so only a counter after the formatted version is incremented — with `v{MAJOR}.{MINOR}.{PATCH}-{BUILD}`, `v1.2.3-4` becomes `v1.2.3-4-1`, never `v1.2.3-5`. Soft no-ops (does not error) when no last tag, or no valid package ID within it, can be found — a build with nothing to fall back to just has nothing to do here.\n\nAlso soft no-ops when HEAD already carries a tag matching the version prefix, e.g. because `build create-package-version` just created and tagged a real package version earlier in the same job. This also keeps a retried job from adding a second fallback tag to the same commit.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=TRUE` (or the deprecated `PACKAGE_CHANGED=TRUE`) is set in the environment (see `build determine-package-changes`) — a real package version will be created instead.",
|
|
366
460
|
"examples": [
|
|
367
461
|
"<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123"
|
|
368
462
|
],
|
|
@@ -518,7 +612,7 @@
|
|
|
518
612
|
"simply:cicd:build:create-package-version": {
|
|
519
613
|
"aliases": [],
|
|
520
614
|
"args": {},
|
|
521
|
-
"description": "Skips entirely (without error) when the pipeline was triggered by a merge request, or when this isn't a release-branch build and `--always-create-package` wasn't passed. Otherwise, creates a new version of the default package directory's package, polls until creation finishes, verifies the resulting version's Apex code coverage meets `--code-coverage-minimum` (or the project's own `plugins.simply.coverageRequirement.minimumCoverageRequired`, if declared in `sfdx-project.json`), and creates/pushes a git tag annotated with the new package version's `04t` ID.\n\nThe tag is `v<major>.<minor>.<patch>.<build>` by default. A project can choose its own shape with a `plugins.simply.versionTagFormat` template in `sfdx-project.json`, or the `SIMPLY_CICD_VERSION_TAG_FORMAT` environment variable (which overrides it) — e.g. `{MAJOR}.{MINOR}.{PATCH}+{BUILD}` tags `1.2.3.4` as `1.2.3+4`. Each of `{MAJOR}`, `{MINOR}`, `{PATCH}`, and `{BUILD}` must appear exactly once, and the format is validated before any package version is created. Unless this is a release-branch build, the package directory's `branch` attribute or the CI ref is appended as `-<suffix>` after the formatted version.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
615
|
+
"description": "Skips entirely (without error) when the pipeline was triggered by a merge request, or when this isn't a release-branch build and `--always-create-package` wasn't passed. Otherwise, creates a new version of the default package directory's package, polls until creation finishes, verifies the resulting version's Apex code coverage meets `--code-coverage-minimum` (or the project's own `plugins.simply.coverageRequirement.minimumCoverageRequired`, if declared in `sfdx-project.json`), and creates/pushes a git tag annotated with the new package version's `04t` ID.\n\nThe tag is `v<major>.<minor>.<patch>.<build>` by default. A project can choose its own shape with a `plugins.simply.versionTagFormat` template in `sfdx-project.json`, or the `SIMPLY_CICD_VERSION_TAG_FORMAT` environment variable (which overrides it) — e.g. `{MAJOR}.{MINOR}.{PATCH}+{BUILD}` tags `1.2.3.4` as `1.2.3+4`. Each of `{MAJOR}`, `{MINOR}`, `{PATCH}`, and `{BUILD}` must appear exactly once, and the format is validated before any package version is created. Unless this is a release-branch build, the package directory's `branch` attribute or the CI ref is appended as `-<suffix>` after the formatted version.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`).",
|
|
522
616
|
"examples": [
|
|
523
617
|
"<%= config.bin %> <%= command.id %> --ci-commit-ref-name main --ci-commit-sha a1b2c3d --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/pipelines/123 --ci-project-path group/project --project-access-token glpat-... --packaging-devhub my-packaging-devhub"
|
|
524
618
|
],
|
|
@@ -715,7 +809,7 @@
|
|
|
715
809
|
"simply:cicd:build:create-scratch": {
|
|
716
810
|
"aliases": [],
|
|
717
811
|
"args": {},
|
|
718
|
-
"description": "Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub` alias in order (each must already be authenticated). A Dev Hub is skipped in favor of the next one when it has no scratch org signups left today (`DailyScratchOrgs`) or is already at its limit of active scratch orgs (`ActiveScratchOrgs`); a Dev Hub that hits either limit during the signup is also skipped. Writes the resulting org's auth fields to `SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission sets/licenses declared under the default package directory's `packageMetadataAccess`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
812
|
+
"description": "Reads the default package directory's `definitionFile` from `sfdx-project.json` (falling back to `--scratch-definition-file`), and attempts creation against each `--dev-hub` alias in order (each must already be authenticated). A Dev Hub is skipped in favor of the next one when it has no scratch org signups left today (`DailyScratchOrgs`) or is already at its limit of active scratch orgs (`ActiveScratchOrgs`); a Dev Hub that hits either limit during the signup is also skipped. Writes the resulting org's auth fields to `SCRATCH_ORG_INFO.json` for later build steps, best-effort sets a default `CountryCode`, and assigns any permission sets/licenses declared under the default package directory's `packageMetadataAccess`.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`).",
|
|
719
813
|
"examples": [
|
|
720
814
|
"<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
|
|
721
815
|
],
|
|
@@ -822,7 +916,7 @@
|
|
|
822
916
|
"simply:cicd:build:delete-scratch": {
|
|
823
917
|
"aliases": [],
|
|
824
918
|
"args": {},
|
|
825
|
-
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to confirm `--dev-hub` is the Dev Hub that owns the scratch org, re-authenticates to it and the scratch org as needed, and deletes it. Deletion failures are logged rather than thrown, since a scratch org left behind after a failed deletion just needs manual cleanup and shouldn't fail an otherwise-successful pipeline run.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
919
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`) to confirm `--dev-hub` is the Dev Hub that owns the scratch org, re-authenticates to it and the scratch org as needed, and deletes it. Deletion failures are logged rather than thrown, since a scratch org left behind after a failed deletion just needs manual cleanup and shouldn't fail an otherwise-successful pipeline run.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`).",
|
|
826
920
|
"examples": [
|
|
827
921
|
"<%= config.bin %> <%= command.id %> --dev-hub my-devhub"
|
|
828
922
|
],
|
|
@@ -922,7 +1016,7 @@
|
|
|
922
1016
|
"simply:cicd:build:determine-package-changes": {
|
|
923
1017
|
"aliases": [],
|
|
924
1018
|
"args": {},
|
|
925
|
-
"description": "Reads the default package directory from `sfdx-project.json`, finds the closest reachable git tag for its `major.minor.patch` (in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, `v<major>.<minor>.<patch>.*` by default), and diffs that tag against `HEAD` for the package directory and `sfdx-project.json` itself. Writes `
|
|
1019
|
+
"description": "Reads the default package directory from `sfdx-project.json`, finds the closest reachable git tag for its `major.minor.patch` (in `SIMPLY_CICD_VERSION_TAG_FORMAT` or the project's `plugins.simply.versionTagFormat`, `v<major>.<minor>.<patch>.*` by default), and diffs that tag against `HEAD` for the package directory and `sfdx-project.json` itself. Writes `SIMPLY_CICD_PACKAGE_CHANGED=TRUE|FALSE` and `SIMPLY_CICD_LAST_TAG=<tag>` to the output file, followed by the same values under the deprecated names `PACKAGE_CHANGED` and `LAST_TAG`, which will be removed in a future release. Any failure during detection (missing/invalid sfdx-project.json, git errors) defaults to `SIMPLY_CICD_PACKAGE_CHANGED=TRUE`, so a build never silently skips work it should have done.",
|
|
926
1020
|
"examples": [
|
|
927
1021
|
"<%= config.bin %> <%= command.id %> --out changes.env"
|
|
928
1022
|
],
|
|
@@ -1402,7 +1496,7 @@
|
|
|
1402
1496
|
"simply:cicd:build:install-dependencies": {
|
|
1403
1497
|
"aliases": [],
|
|
1404
1498
|
"args": {},
|
|
1405
|
-
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and installs its packaged dependencies.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
1499
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and installs its packaged dependencies.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`).",
|
|
1406
1500
|
"examples": [
|
|
1407
1501
|
"<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
|
|
1408
1502
|
],
|
|
@@ -1637,7 +1731,7 @@
|
|
|
1637
1731
|
"simply:cicd:build:publish-utam-page-objects": {
|
|
1638
1732
|
"aliases": [],
|
|
1639
1733
|
"args": {},
|
|
1640
|
-
"description": "Gives every Salesforce Unlocked Package version a matching npm package of compiled UTAM page objects, so a UI-test suite can install exactly the page objects that describe the package version it is testing against.\n\nRuns after `build create-package-version`, whose `04t` it takes as input — from `--subscriber-package-version-id`, from `SUBSCRIBER_PACKAGE_VERSION_ID` in the environment (how a separate job receives that command's dotenv report), or from the dotenv file itself (how a later step in the same job sees it). It copies every `**/__utam__/**/*.utam.json` page object and `**/__utam__/**/*.utam.js` utility under the default package directory into a staging directory outside the repo, compiles them there with the UTAM compiler, and publishes the result: the compiled page objects under `pageObjects/` (`.js`, `.cjs`, `.d.ts`, `.d.cts`), the utilities under `utils/`, and the sources under `source/`. When page objects use profiles, the profiles config is published as `profiles.config.json`, for a test suite to pass to its UTAM loader as `<package>/profiles.config.json`. The compiler writes nothing into the repo; a relative `lint.lintingOutputFile` in the project's compiler config is resolved against the working directory.\n\nThe npm version is derived from the Salesforce version number the same way `sfdx-project.json` writes a dependency pin: `1.2.3.4` becomes `1.2.3-4`, with the git tag's suffix carried as a second prerelease identifier and as the dist-tag, so `1.2.3.4` built from a `beta` package branch is `1.2.3-4.beta` at `beta`, and a release build is `1.2.3-4` at `latest`.\n\nThe compiler is installed at run time rather than shipped with this plugin, so nothing is downloaded unless the command actually runs.\n\nSkips (without failing) when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`), when `--disabled` is passed, when no package version ID can be found, when the project authors no page objects, or when this exact version is already on the registry — which is what makes retrying a job that died after publishing succeed rather than fail on a version conflict. Any other failure fails the job, including two page objects (or utilities) with the same file name, which would compile to the same output file, and a compile that leaves any page object out: a missing or empty page-object package would silently break every UI test pinned to that version.\n\nOn success, appends `
|
|
1734
|
+
"description": "Gives every Salesforce Unlocked Package version a matching npm package of compiled UTAM page objects, so a UI-test suite can install exactly the page objects that describe the package version it is testing against.\n\nRuns after `build create-package-version`, whose `04t` it takes as input — from `--subscriber-package-version-id`, from `SIMPLY_CICD_BUILT_SUBSCRIBER_PACKAGE_VERSION_ID` (or the deprecated `SUBSCRIBER_PACKAGE_VERSION_ID`) in the environment (how a separate job receives that command's dotenv report), or from the dotenv file itself (how a later step in the same job sees it). It copies every `**/__utam__/**/*.utam.json` page object and `**/__utam__/**/*.utam.js` utility under the default package directory into a staging directory outside the repo, compiles them there with the UTAM compiler, and publishes the result: the compiled page objects under `pageObjects/` (`.js`, `.cjs`, `.d.ts`, `.d.cts`), the utilities under `utils/`, and the sources under `source/`. When page objects use profiles, the profiles config is published as `profiles.config.json`, for a test suite to pass to its UTAM loader as `<package>/profiles.config.json`. The compiler writes nothing into the repo; a relative `lint.lintingOutputFile` in the project's compiler config is resolved against the working directory.\n\nThe npm version is derived from the Salesforce version number the same way `sfdx-project.json` writes a dependency pin: `1.2.3.4` becomes `1.2.3-4`, with the git tag's suffix carried as a second prerelease identifier and as the dist-tag, so `1.2.3.4` built from a `beta` package branch is `1.2.3-4.beta` at `beta`, and a release build is `1.2.3-4` at `latest`.\n\nThe compiler is installed at run time rather than shipped with this plugin, so nothing is downloaded unless the command actually runs.\n\nSkips (without failing) when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`), when `--disabled` is passed, when no package version ID can be found, when the project authors no page objects, or when this exact version is already on the registry — which is what makes retrying a job that died after publishing succeed rather than fail on a version conflict. Any other failure fails the job, including two page objects (or utilities) with the same file name, which would compile to the same output file, and a compile that leaves any page object out: a missing or empty page-object package would silently break every UI test pinned to that version.\n\nOn success, appends `SIMPLY_CICD_UTAM_PAGE_OBJECTS_PACKAGE` and `SIMPLY_CICD_UTAM_PAGE_OBJECTS_VERSION` to `--out` (plus the deprecated `UTAM_PAGE_OBJECTS_PACKAGE` and `UTAM_PAGE_OBJECTS_VERSION`, which will be removed in a future release), so a downstream job can install the package without knowing the mapping rule.\n\nRegistry authentication is not this command's job: set it up before the command runs, in user-level npm config (for example `npm config set -- \"//<registry host and path>/:_authToken=<token>\"`, which writes `~/.npmrc`) or in an `.npmrc` that `NPM_CONFIG_USERCONFIG` points at. npm runs from a staging directory outside the repo, so a project-level `.npmrc` in the repo is not read.\n\nConfigure the package name, the compiler's type aliases, extra peer dependencies, and a project-owned compiler config under `plugins.simply.utam` in `sfdx-project.json`.",
|
|
1641
1735
|
"examples": [
|
|
1642
1736
|
"Publish page objects for the version this pipeline just created, reading its ID from the dotenv file:\n<%= config.bin %> <%= command.id %> --packaging-devhub my-packaging-devhub",
|
|
1643
1737
|
"Publish to a GitLab project registry on a release-branch build:\n<%= config.bin %> <%= command.id %> --packaging-devhub my-packaging-devhub --ci-commit-ref-name release/1.2 --package-release-branch-prefix release/ --npm-registry https://gitlab.example.com/api/v4/projects/42/packages/npm/",
|
|
@@ -1684,7 +1778,7 @@
|
|
|
1684
1778
|
},
|
|
1685
1779
|
"subscriber-package-version-id": {
|
|
1686
1780
|
"name": "subscriber-package-version-id",
|
|
1687
|
-
"summary": "Subscriber package version ID (04t) to publish page objects for. Falls back to SUBSCRIBER_PACKAGE_VERSION_ID in the environment, then to the same key in --env-file.",
|
|
1781
|
+
"summary": "Subscriber package version ID (04t) to publish page objects for. Falls back to SIMPLY_CICD_BUILT_SUBSCRIBER_PACKAGE_VERSION_ID (or the deprecated SUBSCRIBER_PACKAGE_VERSION_ID) in the environment, then to the same key in --env-file.",
|
|
1688
1782
|
"hasDynamicHelp": false,
|
|
1689
1783
|
"multiple": false,
|
|
1690
1784
|
"type": "option"
|
|
@@ -1764,7 +1858,7 @@
|
|
|
1764
1858
|
},
|
|
1765
1859
|
"env-file": {
|
|
1766
1860
|
"name": "env-file",
|
|
1767
|
-
"summary": "Dotenv file to read
|
|
1861
|
+
"summary": "Dotenv file to read SIMPLY_CICD_BUILT_SUBSCRIBER_PACKAGE_VERSION_ID from when it isn't passed as a flag or set in the environment.",
|
|
1768
1862
|
"default": "subscriberPackageVersionId.env",
|
|
1769
1863
|
"hasDynamicHelp": false,
|
|
1770
1864
|
"multiple": false,
|
|
@@ -1820,7 +1914,7 @@
|
|
|
1820
1914
|
"simply:cicd:build:push-scratch": {
|
|
1821
1915
|
"aliases": [],
|
|
1822
1916
|
"args": {},
|
|
1823
|
-
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, strips metadata types the scratch org push doesn't support (Einstein Conversation Agent file types), and runs `sf project deploy start`. When `--scratch-org-source-dir` is given, also deploys the default package directory's `seedMetadata.path`, if declared in `sfdx-project.json`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
1917
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, strips metadata types the scratch org push doesn't support (Einstein Conversation Agent file types), and runs `sf project deploy start`. When `--scratch-org-source-dir` is given, also deploys the default package directory's `seedMetadata.path`, if declared in `sfdx-project.json`.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`).",
|
|
1824
1918
|
"examples": [
|
|
1825
1919
|
"<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
|
|
1826
1920
|
],
|
|
@@ -1925,7 +2019,7 @@
|
|
|
1925
2019
|
"simply:cicd:build:test-scratch": {
|
|
1926
2020
|
"aliases": [],
|
|
1927
2021
|
"args": {},
|
|
1928
|
-
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and runs its Apex tests with `RunLocalTests`.\n\nSkipped automatically when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build determine-package-changes`).",
|
|
2022
|
+
"description": "Reads `SCRATCH_ORG_INFO.json` (written by `build create-scratch`), authenticates as that scratch org, and runs its Apex tests with `RunLocalTests`.\n\nSkipped automatically when `SIMPLY_CICD_PACKAGE_CHANGED=FALSE` (or the deprecated `PACKAGE_CHANGED=FALSE`) is set in the environment (see `build determine-package-changes`).",
|
|
1929
2023
|
"examples": [
|
|
1930
2024
|
"<%= config.bin %> <%= command.id %> --jwt-key-file ./server.key"
|
|
1931
2025
|
],
|
|
@@ -2020,100 +2114,6 @@
|
|
|
2020
2114
|
"test-scratch:build:cicd:simply"
|
|
2021
2115
|
]
|
|
2022
2116
|
},
|
|
2023
|
-
"simply:cicd:deploy:validate": {
|
|
2024
|
-
"aliases": [],
|
|
2025
|
-
"args": {},
|
|
2026
|
-
"description": "Validates the deployment config file (`deploy.json`) and deployment rules file independently against their schemas. A missing file is skipped with a warning; a malformed or schema-invalid file fails the command.\n\nThis is the generic form of the command, with no namespace-specific default file paths — see `deploy project validate` and `deploy happy-soup validate` for versions with sensible defaults for those deployment styles.",
|
|
2027
|
-
"examples": [
|
|
2028
|
-
"<%= config.bin %> <%= command.id %> --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json"
|
|
2029
|
-
],
|
|
2030
|
-
"flags": {
|
|
2031
|
-
"json": {
|
|
2032
|
-
"description": "Format output as json.",
|
|
2033
|
-
"helpGroup": "GLOBAL",
|
|
2034
|
-
"name": "json",
|
|
2035
|
-
"allowNo": false,
|
|
2036
|
-
"type": "boolean"
|
|
2037
|
-
},
|
|
2038
|
-
"flags-dir": {
|
|
2039
|
-
"helpGroup": "GLOBAL",
|
|
2040
|
-
"name": "flags-dir",
|
|
2041
|
-
"summary": "Import flag values from a directory.",
|
|
2042
|
-
"hasDynamicHelp": false,
|
|
2043
|
-
"multiple": false,
|
|
2044
|
-
"type": "option"
|
|
2045
|
-
},
|
|
2046
|
-
"deploy-config-file": {
|
|
2047
|
-
"env": "SIMPLY_CICD_DEPLOY_CONFIG_FILE",
|
|
2048
|
-
"name": "deploy-config-file",
|
|
2049
|
-
"summary": "Path to the deployment configuration file.",
|
|
2050
|
-
"hasDynamicHelp": false,
|
|
2051
|
-
"multiple": false,
|
|
2052
|
-
"type": "option"
|
|
2053
|
-
},
|
|
2054
|
-
"deploy-rules-file": {
|
|
2055
|
-
"env": "SIMPLY_CICD_DEPLOY_RULES_FILE",
|
|
2056
|
-
"name": "deploy-rules-file",
|
|
2057
|
-
"summary": "Path to the deployment rules file.",
|
|
2058
|
-
"hasDynamicHelp": false,
|
|
2059
|
-
"multiple": false,
|
|
2060
|
-
"type": "option"
|
|
2061
|
-
},
|
|
2062
|
-
"source-branch-name": {
|
|
2063
|
-
"env": "SIMPLY_CICD_SOURCE_BRANCH_NAME",
|
|
2064
|
-
"name": "source-branch-name",
|
|
2065
|
-
"summary": "The source branch name for the deployment, used to derive the deployment config file path if --deploy-config-file is not provided.",
|
|
2066
|
-
"hasDynamicHelp": false,
|
|
2067
|
-
"multiple": false,
|
|
2068
|
-
"type": "option"
|
|
2069
|
-
}
|
|
2070
|
-
},
|
|
2071
|
-
"hasDynamicHelp": false,
|
|
2072
|
-
"hiddenAliases": [],
|
|
2073
|
-
"id": "simply:cicd:deploy:validate",
|
|
2074
|
-
"pluginAlias": "@simplysf/simply-cicd",
|
|
2075
|
-
"pluginName": "@simplysf/simply-cicd",
|
|
2076
|
-
"pluginType": "core",
|
|
2077
|
-
"strict": true,
|
|
2078
|
-
"summary": "Validate deployment configuration files against their JSON schemas.",
|
|
2079
|
-
"enableJsonFlag": true,
|
|
2080
|
-
"isESM": true,
|
|
2081
|
-
"relativePath": [
|
|
2082
|
-
"lib",
|
|
2083
|
-
"commands",
|
|
2084
|
-
"simply",
|
|
2085
|
-
"cicd",
|
|
2086
|
-
"deploy",
|
|
2087
|
-
"validate.js"
|
|
2088
|
-
],
|
|
2089
|
-
"aliasPermutations": [],
|
|
2090
|
-
"permutations": [
|
|
2091
|
-
"simply:cicd:deploy:validate",
|
|
2092
|
-
"cicd:simply:deploy:validate",
|
|
2093
|
-
"cicd:deploy:simply:validate",
|
|
2094
|
-
"cicd:deploy:validate:simply",
|
|
2095
|
-
"simply:deploy:cicd:validate",
|
|
2096
|
-
"deploy:simply:cicd:validate",
|
|
2097
|
-
"deploy:cicd:simply:validate",
|
|
2098
|
-
"deploy:cicd:validate:simply",
|
|
2099
|
-
"simply:deploy:validate:cicd",
|
|
2100
|
-
"deploy:simply:validate:cicd",
|
|
2101
|
-
"deploy:validate:simply:cicd",
|
|
2102
|
-
"deploy:validate:cicd:simply",
|
|
2103
|
-
"simply:cicd:validate:deploy",
|
|
2104
|
-
"cicd:simply:validate:deploy",
|
|
2105
|
-
"cicd:validate:simply:deploy",
|
|
2106
|
-
"cicd:validate:deploy:simply",
|
|
2107
|
-
"simply:validate:cicd:deploy",
|
|
2108
|
-
"validate:simply:cicd:deploy",
|
|
2109
|
-
"validate:cicd:simply:deploy",
|
|
2110
|
-
"validate:cicd:deploy:simply",
|
|
2111
|
-
"simply:validate:deploy:cicd",
|
|
2112
|
-
"validate:simply:deploy:cicd",
|
|
2113
|
-
"validate:deploy:simply:cicd",
|
|
2114
|
-
"validate:deploy:cicd:simply"
|
|
2115
|
-
]
|
|
2116
|
-
},
|
|
2117
2117
|
"simply:cicd:notify:build": {
|
|
2118
2118
|
"aliases": [],
|
|
2119
2119
|
"args": {},
|
|
@@ -6812,5 +6812,5 @@
|
|
|
6812
6812
|
]
|
|
6813
6813
|
}
|
|
6814
6814
|
},
|
|
6815
|
-
"version": "0.
|
|
6815
|
+
"version": "0.27.0"
|
|
6816
6816
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simplysf/simply-cicd",
|
|
3
3
|
"description": "Commands for Salesforce CI/CD pipelines",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.27.0",
|
|
5
5
|
"author": "@ClayChipps",
|
|
6
6
|
"homepage": "https://github.com/SimplySF/simply-plugins",
|
|
7
7
|
"bugs": "https://github.com/SimplySF/simply-plugins/issues",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@salesforce/core": "^8.30.0",
|
|
61
61
|
"@salesforce/sf-plugins-core": "^12.2.16",
|
|
62
62
|
"@salesforce/ts-types": "^2.0.12",
|
|
63
|
-
"@simplysf/simply-cicd-core": "^0.
|
|
63
|
+
"@simplysf/simply-cicd-core": "^0.15.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@oclif/plugin-command-snapshot": "^5.4.0",
|
|
@@ -198,5 +198,5 @@
|
|
|
198
198
|
"output": []
|
|
199
199
|
}
|
|
200
200
|
},
|
|
201
|
-
"gitHead": "
|
|
201
|
+
"gitHead": "5b1dffee4f4e47dda2765d8d438752b46247fbf6"
|
|
202
202
|
}
|