@simplysf/simply-cicd 0.10.4 → 0.11.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +136 -32
- package/lib/commands/simply/cicd/build/publish-utam-page-objects.d.ts +27 -0
- package/lib/commands/simply/cicd/build/publish-utam-page-objects.js +104 -0
- package/lib/commands/simply/cicd/build/publish-utam-page-objects.js.map +1 -0
- package/lib/common/build/createPackageVersion.d.ts +15 -0
- package/lib/common/build/createPackageVersion.js +15 -2
- package/lib/common/build/createPackageVersion.js.map +1 -1
- package/lib/common/build/publishUtamPageObjects.d.ts +51 -0
- package/lib/common/build/publishUtamPageObjects.js +281 -0
- package/lib/common/build/publishUtamPageObjects.js.map +1 -0
- package/lib/common/build/skipGuard.js +1 -0
- package/lib/common/build/skipGuard.js.map +1 -1
- package/lib/common/build/utamPageObjects.d.ts +159 -0
- package/lib/common/build/utamPageObjects.js +277 -0
- package/lib/common/build/utamPageObjects.js.map +1 -0
- package/messages/simply.cicd.build.publish-utam-page-objects.md +85 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -30,6 +30,7 @@ This package is part of the [`@simplysf/simply`](https://github.com/SimplySF/sim
|
|
|
30
30
|
- [`sf simply cicd build generate-flow-diff`](#sf-simply-cicd-build-generate-flow-diff)
|
|
31
31
|
- [`sf simply cicd build install-dependencies`](#sf-simply-cicd-build-install-dependencies)
|
|
32
32
|
- [`sf simply cicd build lwc-jest`](#sf-simply-cicd-build-lwc-jest)
|
|
33
|
+
- [`sf simply cicd build publish-utam-page-objects`](#sf-simply-cicd-build-publish-utam-page-objects)
|
|
33
34
|
- [`sf simply cicd build push-scratch`](#sf-simply-cicd-build-push-scratch)
|
|
34
35
|
- [`sf simply cicd build test-scratch`](#sf-simply-cicd-build-test-scratch)
|
|
35
36
|
- [`sf simply cicd deploy happy-soup deploy-unpackaged`](#sf-simply-cicd-deploy-happy-soup-deploy-unpackaged)
|
|
@@ -82,7 +83,7 @@ EXAMPLES
|
|
|
82
83
|
$ sf simply cicd build cleanup-scratch-orgs --dev-hub my-devhub
|
|
83
84
|
```
|
|
84
85
|
|
|
85
|
-
_See code: [lib/commands/simply/cicd/build/cleanup-scratch-orgs.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
86
|
+
_See code: [lib/commands/simply/cicd/build/cleanup-scratch-orgs.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/cleanup-scratch-orgs.js)_
|
|
86
87
|
|
|
87
88
|
## `sf simply cicd build create-fallback-tag`
|
|
88
89
|
|
|
@@ -133,7 +134,7 @@ EXAMPLES
|
|
|
133
134
|
$ sf simply cicd build create-fallback-tag --ci-commit-ref-name main --ci-project-path group/project --project-access-token glpat-... --ci-pipeline-id 123
|
|
134
135
|
```
|
|
135
136
|
|
|
136
|
-
_See code: [lib/commands/simply/cicd/build/create-fallback-tag.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
137
|
+
_See code: [lib/commands/simply/cicd/build/create-fallback-tag.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/create-fallback-tag.js)_
|
|
137
138
|
|
|
138
139
|
## `sf simply cicd build create-package-version`
|
|
139
140
|
|
|
@@ -199,7 +200,7 @@ EXAMPLES
|
|
|
199
200
|
$ sf simply cicd build create-package-version --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
|
|
200
201
|
```
|
|
201
202
|
|
|
202
|
-
_See code: [lib/commands/simply/cicd/build/create-package-version.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
203
|
+
_See code: [lib/commands/simply/cicd/build/create-package-version.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/create-package-version.js)_
|
|
203
204
|
|
|
204
205
|
## `sf simply cicd build create-scratch`
|
|
205
206
|
|
|
@@ -240,7 +241,7 @@ EXAMPLES
|
|
|
240
241
|
$ sf simply cicd build create-scratch --dev-hub my-devhub
|
|
241
242
|
```
|
|
242
243
|
|
|
243
|
-
_See code: [lib/commands/simply/cicd/build/create-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
244
|
+
_See code: [lib/commands/simply/cicd/build/create-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/create-scratch.js)_
|
|
244
245
|
|
|
245
246
|
## `sf simply cicd build delete-scratch`
|
|
246
247
|
|
|
@@ -279,7 +280,7 @@ EXAMPLES
|
|
|
279
280
|
$ sf simply cicd build delete-scratch --dev-hub my-devhub
|
|
280
281
|
```
|
|
281
282
|
|
|
282
|
-
_See code: [lib/commands/simply/cicd/build/delete-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
283
|
+
_See code: [lib/commands/simply/cicd/build/delete-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/delete-scratch.js)_
|
|
283
284
|
|
|
284
285
|
## `sf simply cicd build determine-package-changes`
|
|
285
286
|
|
|
@@ -311,7 +312,7 @@ EXAMPLES
|
|
|
311
312
|
$ sf simply cicd build determine-package-changes --out changes.env
|
|
312
313
|
```
|
|
313
314
|
|
|
314
|
-
_See code: [lib/commands/simply/cicd/build/determine-package-changes.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
315
|
+
_See code: [lib/commands/simply/cicd/build/determine-package-changes.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/determine-package-changes.js)_
|
|
315
316
|
|
|
316
317
|
## `sf simply cicd build generate-flexipage-diff`
|
|
317
318
|
|
|
@@ -369,7 +370,7 @@ EXAMPLES
|
|
|
369
370
|
$ sf simply cicd build generate-flexipage-diff --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-...
|
|
370
371
|
```
|
|
371
372
|
|
|
372
|
-
_See code: [lib/commands/simply/cicd/build/generate-flexipage-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
373
|
+
_See code: [lib/commands/simply/cicd/build/generate-flexipage-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/generate-flexipage-diff.js)_
|
|
373
374
|
|
|
374
375
|
## `sf simply cicd build generate-flow-diff`
|
|
375
376
|
|
|
@@ -427,7 +428,7 @@ EXAMPLES
|
|
|
427
428
|
$ sf simply cicd build generate-flow-diff --vcs-provider github --ci-repository my-org/my-repo --ci-pull-request-number 45 --ci-run-id 987 --from abc123 --to def456 --project-access-token ghp-...
|
|
428
429
|
```
|
|
429
430
|
|
|
430
|
-
_See code: [lib/commands/simply/cicd/build/generate-flow-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
431
|
+
_See code: [lib/commands/simply/cicd/build/generate-flow-diff.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/generate-flow-diff.js)_
|
|
431
432
|
|
|
432
433
|
## `sf simply cicd build install-dependencies`
|
|
433
434
|
|
|
@@ -464,7 +465,7 @@ EXAMPLES
|
|
|
464
465
|
$ sf simply cicd build install-dependencies --jwt-key-file ./server.key
|
|
465
466
|
```
|
|
466
467
|
|
|
467
|
-
_See code: [lib/commands/simply/cicd/build/install-dependencies.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
468
|
+
_See code: [lib/commands/simply/cicd/build/install-dependencies.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/install-dependencies.js)_
|
|
468
469
|
|
|
469
470
|
## `sf simply cicd build lwc-jest`
|
|
470
471
|
|
|
@@ -492,7 +493,110 @@ EXAMPLES
|
|
|
492
493
|
$ sf simply cicd build lwc-jest
|
|
493
494
|
```
|
|
494
495
|
|
|
495
|
-
_See code: [lib/commands/simply/cicd/build/lwc-jest.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
496
|
+
_See code: [lib/commands/simply/cicd/build/lwc-jest.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/lwc-jest.js)_
|
|
497
|
+
|
|
498
|
+
## `sf simply cicd build publish-utam-page-objects`
|
|
499
|
+
|
|
500
|
+
Compile the project's UTAM page objects for a package version and publish them to an npm registry.
|
|
501
|
+
|
|
502
|
+
```
|
|
503
|
+
USAGE
|
|
504
|
+
$ sf simply cicd build publish-utam-page-objects --packaging-devhub <value> [--json] [--flags-dir <value>] [--debug] [--disabled]
|
|
505
|
+
[--subscriber-package-version-id <value>] [--npm-package-name <value>] [--npm-registry <value>] [--npm-token
|
|
506
|
+
<value>] [--npm-access public|restricted] [--npm-dist-tag <value>] [--ci-commit-ref-name <value>]
|
|
507
|
+
[--package-release-branch-prefix <value>] [--utam-version <value>] [--dry-run] [--out <value>] [--env-file <value>]
|
|
508
|
+
|
|
509
|
+
FLAGS
|
|
510
|
+
--ci-commit-ref-name=<value> [env: SIMPLY_CICD_CI_COMMIT_REF_NAME] Git branch or ref name being built.
|
|
511
|
+
With --package-release-branch-prefix, reproduces the suffix
|
|
512
|
+
`create-package-version` put on the git tag, so the npm version mirrors it.
|
|
513
|
+
--debug [env: SIMPLY_CICD_DEBUG] Enable verbose debug logging.
|
|
514
|
+
--disabled [env: SIMPLY_CICD_DISABLED] Skip this job entirely, logging a warning instead
|
|
515
|
+
of running it.
|
|
516
|
+
--dry-run Compile and pack the package without publishing it, copying the tarball into
|
|
517
|
+
the project directory.
|
|
518
|
+
--env-file=<value> [default: subscriberPackageVersionId.env] Dotenv file to read
|
|
519
|
+
SUBSCRIBER_PACKAGE_VERSION_ID from when it isn't passed as a flag or set in
|
|
520
|
+
the environment.
|
|
521
|
+
--npm-access=<option> [env: SIMPLY_CICD_NPM_ACCESS] Passed through to npm publish --access. Needed
|
|
522
|
+
on npmjs.com to publish a scoped package publicly.
|
|
523
|
+
<options: public|restricted>
|
|
524
|
+
--npm-dist-tag=<value> Dist-tag to publish under, overriding the one derived from the git tag's
|
|
525
|
+
suffix.
|
|
526
|
+
--npm-package-name=<value> [env: SIMPLY_CICD_NPM_PACKAGE_NAME] npm package name to publish the page
|
|
527
|
+
objects under. Required unless `plugins.simply.utam.packageName` is set in
|
|
528
|
+
sfdx-project.json; the flag wins when both are present.
|
|
529
|
+
--npm-registry=<value> [env: SIMPLY_CICD_NPM_REGISTRY] Registry to publish to. Defaults to whatever
|
|
530
|
+
npm itself is configured to use.
|
|
531
|
+
--npm-token=<value> [env: SIMPLY_CICD_NPM_TOKEN] Auth token for the registry. Written to an
|
|
532
|
+
.npmrc inside the staging directory only — the repo's own .npmrc is never
|
|
533
|
+
touched.
|
|
534
|
+
--out=<value> [default: subscriberPackageVersionId.env] Dotenv file to append the published
|
|
535
|
+
package name and version to.
|
|
536
|
+
--package-release-branch-prefix=<value> Prefix identifying release branches. Determines whether the npm version and
|
|
537
|
+
dist-tag carry a branch suffix.
|
|
538
|
+
--packaging-devhub=<value> (required) [env: SIMPLY_CICD_PACKAGING_DEVHUB] Alias of the Dev Hub that owns
|
|
539
|
+
the package version. Must already be authenticated.
|
|
540
|
+
--subscriber-package-version-id=<value> Subscriber package version ID (04t) to publish page objects for. Falls back
|
|
541
|
+
to SUBSCRIBER_PACKAGE_VERSION_ID in the environment, then to the same key in
|
|
542
|
+
--env-file.
|
|
543
|
+
--utam-version=<value> [default: ^3, env: SIMPLY_CICD_UTAM_VERSION] npm version spec of the UTAM
|
|
544
|
+
compiler to install and compile with.
|
|
545
|
+
|
|
546
|
+
GLOBAL FLAGS
|
|
547
|
+
--flags-dir=<value> Import flag values from a directory.
|
|
548
|
+
--json Format output as json.
|
|
549
|
+
|
|
550
|
+
DESCRIPTION
|
|
551
|
+
Compile the project's UTAM page objects for a package version and publish them to an npm registry.
|
|
552
|
+
|
|
553
|
+
Gives every Salesforce Unlocked Package version a matching npm package of compiled UTAM page objects, so a UI-test
|
|
554
|
+
suite can install exactly the page objects that describe the package version it is testing against.
|
|
555
|
+
|
|
556
|
+
Runs after `build create-package-version`, whose `04t` it takes as input — from `--subscriber-package-version-id`,
|
|
557
|
+
from `SUBSCRIBER_PACKAGE_VERSION_ID` in the environment (how a separate job receives that command's dotenv report), or
|
|
558
|
+
from the dotenv file itself (how a later step in the same job sees it). It compiles every `**/__utam__/**/*.utam.json`
|
|
559
|
+
under the default package directory with the UTAM compiler, in a staging directory outside the repo, and publishes the
|
|
560
|
+
result.
|
|
561
|
+
|
|
562
|
+
The npm version is derived from the Salesforce version number the same way `sfdx-project.json` writes a dependency
|
|
563
|
+
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
|
|
564
|
+
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
|
|
565
|
+
`1.2.3-4` at `latest`.
|
|
566
|
+
|
|
567
|
+
The compiler is installed at run time rather than shipped with this plugin, so nothing is downloaded unless the
|
|
568
|
+
command actually runs.
|
|
569
|
+
|
|
570
|
+
Skips (without failing) when `PACKAGE_CHANGED=FALSE` is set in the environment (see `build
|
|
571
|
+
determine-package-changes`), when `--disabled` is passed, when no package version ID can be found, when the project
|
|
572
|
+
authors no page objects, or when this exact version is already on the registry — which is what makes retrying a job
|
|
573
|
+
that died after publishing succeed rather than fail on a version conflict. Any other failure fails the job: a missing
|
|
574
|
+
page-object package would silently break every UI test pinned to that version.
|
|
575
|
+
|
|
576
|
+
On success, appends `UTAM_PAGE_OBJECTS_PACKAGE` and `UTAM_PAGE_OBJECTS_VERSION` to `--out`, so a downstream job can
|
|
577
|
+
install the package without knowing the mapping rule.
|
|
578
|
+
|
|
579
|
+
Configure the package name, the compiler's type aliases, extra peer dependencies, and a project-owned compiler config
|
|
580
|
+
under `plugins.simply.utam` in `sfdx-project.json`.
|
|
581
|
+
|
|
582
|
+
EXAMPLES
|
|
583
|
+
Publish page objects for the version this pipeline just created, reading its ID from the dotenv file:
|
|
584
|
+
|
|
585
|
+
$ sf simply cicd build publish-utam-page-objects --packaging-devhub my-packaging-devhub
|
|
586
|
+
|
|
587
|
+
Publish to a GitLab project registry on a release-branch build:
|
|
588
|
+
|
|
589
|
+
$ sf simply cicd build publish-utam-page-objects --packaging-devhub my-packaging-devhub --ci-commit-ref-name ^
|
|
590
|
+
release/1.2 --package-release-branch-prefix release/ --npm-registry ^
|
|
591
|
+
https://gitlab.example.com/api/v4/projects/42/packages/npm/ --npm-token $CI_JOB_TOKEN
|
|
592
|
+
|
|
593
|
+
Compile and pack without publishing, to inspect what would be produced:
|
|
594
|
+
|
|
595
|
+
$ sf simply cicd build publish-utam-page-objects --packaging-devhub my-packaging-devhub ^
|
|
596
|
+
--subscriber-package-version-id 04tXXXXXXXXXXXXXXX --dry-run
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
_See code: [lib/commands/simply/cicd/build/publish-utam-page-objects.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/publish-utam-page-objects.js)_
|
|
496
600
|
|
|
497
601
|
## `sf simply cicd build push-scratch`
|
|
498
602
|
|
|
@@ -533,7 +637,7 @@ EXAMPLES
|
|
|
533
637
|
$ sf simply cicd build push-scratch --jwt-key-file ./server.key
|
|
534
638
|
```
|
|
535
639
|
|
|
536
|
-
_See code: [lib/commands/simply/cicd/build/push-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
640
|
+
_See code: [lib/commands/simply/cicd/build/push-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/push-scratch.js)_
|
|
537
641
|
|
|
538
642
|
## `sf simply cicd build test-scratch`
|
|
539
643
|
|
|
@@ -569,7 +673,7 @@ EXAMPLES
|
|
|
569
673
|
$ sf simply cicd build test-scratch --jwt-key-file ./server.key
|
|
570
674
|
```
|
|
571
675
|
|
|
572
|
-
_See code: [lib/commands/simply/cicd/build/test-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
676
|
+
_See code: [lib/commands/simply/cicd/build/test-scratch.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/build/test-scratch.js)_
|
|
573
677
|
|
|
574
678
|
## `sf simply cicd deploy happy-soup deploy-unpackaged`
|
|
575
679
|
|
|
@@ -620,7 +724,7 @@ EXAMPLES
|
|
|
620
724
|
$ sf simply cicd deploy happy-soup deploy-unpackaged --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
621
725
|
```
|
|
622
726
|
|
|
623
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
727
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/deploy-unpackaged.js)_
|
|
624
728
|
|
|
625
729
|
## `sf simply cicd deploy happy-soup deployment-close-out`
|
|
626
730
|
|
|
@@ -674,7 +778,7 @@ EXAMPLES
|
|
|
674
778
|
$ sf simply cicd deploy happy-soup deployment-close-out --ci-commit-ref-name main --ci-pipeline-id 123 --ci-project-path group/project --project-access-token $PROJECT_ACCESS_TOKEN --deploy-release-date 2026-01-15
|
|
675
779
|
```
|
|
676
780
|
|
|
677
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
781
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/deployment-close-out.js)_
|
|
678
782
|
|
|
679
783
|
## `sf simply cicd deploy happy-soup install-packaged`
|
|
680
784
|
|
|
@@ -720,7 +824,7 @@ EXAMPLES
|
|
|
720
824
|
$ sf simply cicd deploy happy-soup install-packaged --alias my-org
|
|
721
825
|
```
|
|
722
826
|
|
|
723
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
827
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/install-packaged.js)_
|
|
724
828
|
|
|
725
829
|
## `sf simply cicd deploy happy-soup post-deploy`
|
|
726
830
|
|
|
@@ -771,7 +875,7 @@ EXAMPLES
|
|
|
771
875
|
$ sf simply cicd deploy happy-soup post-deploy --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
772
876
|
```
|
|
773
877
|
|
|
774
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
878
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/post-deploy.js)_
|
|
775
879
|
|
|
776
880
|
## `sf simply cicd deploy happy-soup post-destructive`
|
|
777
881
|
|
|
@@ -822,7 +926,7 @@ EXAMPLES
|
|
|
822
926
|
$ sf simply cicd deploy happy-soup post-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
823
927
|
```
|
|
824
928
|
|
|
825
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
929
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/post-destructive.js)_
|
|
826
930
|
|
|
827
931
|
## `sf simply cicd deploy happy-soup pre-destructive`
|
|
828
932
|
|
|
@@ -873,7 +977,7 @@ EXAMPLES
|
|
|
873
977
|
$ sf simply cicd deploy happy-soup pre-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org --source-branch-name release/uat
|
|
874
978
|
```
|
|
875
979
|
|
|
876
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
980
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/pre-destructive.js)_
|
|
877
981
|
|
|
878
982
|
## `sf simply cicd deploy happy-soup tag-deployment`
|
|
879
983
|
|
|
@@ -925,7 +1029,7 @@ EXAMPLES
|
|
|
925
1029
|
$ sf simply cicd deploy happy-soup tag-deployment --alias my-org --ci-pipeline-id 123 --ci-pipeline-url https://gitlab.example.com/group/project/-/pipelines/123 --ci-project-path group/project --ci-merge-request-iid 45 --ci-merge-request-project-url https://gitlab.example.com/group/project --project-access-token $PROJECT_ACCESS_TOKEN
|
|
926
1030
|
```
|
|
927
1031
|
|
|
928
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1032
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/tag-deployment.js)_
|
|
929
1033
|
|
|
930
1034
|
## `sf simply cicd deploy happy-soup validate`
|
|
931
1035
|
|
|
@@ -963,7 +1067,7 @@ EXAMPLES
|
|
|
963
1067
|
$ sf simply cicd deploy happy-soup validate --deploy-config-file deployment-configs/uat.json --deploy-rules-file config/deploy-rules.json
|
|
964
1068
|
```
|
|
965
1069
|
|
|
966
|
-
_See code: [lib/commands/simply/cicd/deploy/happy-soup/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1070
|
+
_See code: [lib/commands/simply/cicd/deploy/happy-soup/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/happy-soup/validate.js)_
|
|
967
1071
|
|
|
968
1072
|
## `sf simply cicd deploy project deploy-unpackaged`
|
|
969
1073
|
|
|
@@ -1011,7 +1115,7 @@ EXAMPLES
|
|
|
1011
1115
|
$ sf simply cicd deploy project deploy-unpackaged --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1012
1116
|
```
|
|
1013
1117
|
|
|
1014
|
-
_See code: [lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1118
|
+
_See code: [lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/deploy-unpackaged.js)_
|
|
1015
1119
|
|
|
1016
1120
|
## `sf simply cicd deploy project install-packaged`
|
|
1017
1121
|
|
|
@@ -1059,7 +1163,7 @@ EXAMPLES
|
|
|
1059
1163
|
$ sf simply cicd deploy project install-packaged --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1060
1164
|
```
|
|
1061
1165
|
|
|
1062
|
-
_See code: [lib/commands/simply/cicd/deploy/project/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1166
|
+
_See code: [lib/commands/simply/cicd/deploy/project/install-packaged.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/install-packaged.js)_
|
|
1063
1167
|
|
|
1064
1168
|
## `sf simply cicd deploy project post-deploy`
|
|
1065
1169
|
|
|
@@ -1107,7 +1211,7 @@ EXAMPLES
|
|
|
1107
1211
|
$ sf simply cicd deploy project post-deploy --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1108
1212
|
```
|
|
1109
1213
|
|
|
1110
|
-
_See code: [lib/commands/simply/cicd/deploy/project/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1214
|
+
_See code: [lib/commands/simply/cicd/deploy/project/post-deploy.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/post-deploy.js)_
|
|
1111
1215
|
|
|
1112
1216
|
## `sf simply cicd deploy project post-destructive`
|
|
1113
1217
|
|
|
@@ -1155,7 +1259,7 @@ EXAMPLES
|
|
|
1155
1259
|
$ sf simply cicd deploy project post-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1156
1260
|
```
|
|
1157
1261
|
|
|
1158
|
-
_See code: [lib/commands/simply/cicd/deploy/project/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1262
|
+
_See code: [lib/commands/simply/cicd/deploy/project/post-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/post-destructive.js)_
|
|
1159
1263
|
|
|
1160
1264
|
## `sf simply cicd deploy project pre-destructive`
|
|
1161
1265
|
|
|
@@ -1203,7 +1307,7 @@ EXAMPLES
|
|
|
1203
1307
|
$ sf simply cicd deploy project pre-destructive --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1204
1308
|
```
|
|
1205
1309
|
|
|
1206
|
-
_See code: [lib/commands/simply/cicd/deploy/project/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1310
|
+
_See code: [lib/commands/simply/cicd/deploy/project/pre-destructive.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/pre-destructive.js)_
|
|
1207
1311
|
|
|
1208
1312
|
## `sf simply cicd deploy project run-apex-tests`
|
|
1209
1313
|
|
|
@@ -1250,7 +1354,7 @@ EXAMPLES
|
|
|
1250
1354
|
$ sf simply cicd deploy project run-apex-tests --ci-job-token $CI_JOB_TOKEN --alias my-org
|
|
1251
1355
|
```
|
|
1252
1356
|
|
|
1253
|
-
_See code: [lib/commands/simply/cicd/deploy/project/run-apex-tests.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1357
|
+
_See code: [lib/commands/simply/cicd/deploy/project/run-apex-tests.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/run-apex-tests.js)_
|
|
1254
1358
|
|
|
1255
1359
|
## `sf simply cicd deploy project validate`
|
|
1256
1360
|
|
|
@@ -1285,7 +1389,7 @@ EXAMPLES
|
|
|
1285
1389
|
$ sf simply cicd deploy project validate --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
|
|
1286
1390
|
```
|
|
1287
1391
|
|
|
1288
|
-
_See code: [lib/commands/simply/cicd/deploy/project/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1392
|
+
_See code: [lib/commands/simply/cicd/deploy/project/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/project/validate.js)_
|
|
1289
1393
|
|
|
1290
1394
|
## `sf simply cicd deploy validate`
|
|
1291
1395
|
|
|
@@ -1319,7 +1423,7 @@ EXAMPLES
|
|
|
1319
1423
|
$ sf simply cicd deploy validate --deploy-config-file config/deploy.json --deploy-rules-file config/deploy-rules.json
|
|
1320
1424
|
```
|
|
1321
1425
|
|
|
1322
|
-
_See code: [lib/commands/simply/cicd/deploy/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1426
|
+
_See code: [lib/commands/simply/cicd/deploy/validate.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/deploy/validate.js)_
|
|
1323
1427
|
|
|
1324
1428
|
## `sf simply cicd notify happy-soup`
|
|
1325
1429
|
|
|
@@ -1392,7 +1496,7 @@ EXAMPLES
|
|
|
1392
1496
|
$ sf simply cicd notify happy-soup --after-script --is-final-job --notify-on-completion --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1393
1497
|
```
|
|
1394
1498
|
|
|
1395
|
-
_See code: [lib/commands/simply/cicd/notify/happy-soup.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1499
|
+
_See code: [lib/commands/simply/cicd/notify/happy-soup.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/notify/happy-soup.js)_
|
|
1396
1500
|
|
|
1397
1501
|
## `sf simply cicd notify project`
|
|
1398
1502
|
|
|
@@ -1466,7 +1570,7 @@ EXAMPLES
|
|
|
1466
1570
|
$ sf simply cicd notify project --after-script --ci-job-stage post-destructive --ci-job-status success --teams-webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1467
1571
|
```
|
|
1468
1572
|
|
|
1469
|
-
_See code: [lib/commands/simply/cicd/notify/project.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1573
|
+
_See code: [lib/commands/simply/cicd/notify/project.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/notify/project.js)_
|
|
1470
1574
|
|
|
1471
1575
|
## `sf simply cicd notify teams`
|
|
1472
1576
|
|
|
@@ -1498,7 +1602,7 @@ EXAMPLES
|
|
|
1498
1602
|
$ sf simply cicd notify teams --payload '{"text":"Deployment complete"}' --webhook-url https://outlook.office.com/webhook/... --enabled
|
|
1499
1603
|
```
|
|
1500
1604
|
|
|
1501
|
-
_See code: [lib/commands/simply/cicd/notify/teams.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1605
|
+
_See code: [lib/commands/simply/cicd/notify/teams.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/notify/teams.js)_
|
|
1502
1606
|
|
|
1503
1607
|
## `sf simply cicd sfdx-dependabot`
|
|
1504
1608
|
|
|
@@ -1574,7 +1678,7 @@ FLAG DESCRIPTIONS
|
|
|
1574
1678
|
Defaults to the selected provider's public instance if not provided.
|
|
1575
1679
|
```
|
|
1576
1680
|
|
|
1577
|
-
_See code: [lib/commands/simply/cicd/sfdx-dependabot.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.
|
|
1681
|
+
_See code: [lib/commands/simply/cicd/sfdx-dependabot.js](https://github.com/SimplySF/simply-plugins/blob/@simplysf/simply-cicd@0.10.4/packages/simply-cicd/lib/commands/simply/cicd/sfdx-dependabot.js)_
|
|
1578
1682
|
<!-- commandsstop -->
|
|
1579
1683
|
|
|
1580
1684
|
## License
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { SfCommand } from '@salesforce/sf-plugins-core';
|
|
2
|
+
import { type NpmAccess, type PublishUtamPageObjectsResult } from '../../../../common/build/publishUtamPageObjects.js';
|
|
3
|
+
/** Compiles the project's UTAM page objects for a package version and publishes them to an npm registry. */
|
|
4
|
+
export default class BuildPublishUtamPageObjects extends SfCommand<PublishUtamPageObjectsResult> {
|
|
5
|
+
static readonly summary: string;
|
|
6
|
+
static readonly description: string;
|
|
7
|
+
static readonly examples: string[];
|
|
8
|
+
static readonly flags: {
|
|
9
|
+
'packaging-devhub': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
'subscriber-package-version-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
11
|
+
'npm-package-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
12
|
+
'npm-registry': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
13
|
+
'npm-token': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
14
|
+
'npm-access': import("@oclif/core/interfaces").OptionFlag<NpmAccess | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
15
|
+
'npm-dist-tag': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
16
|
+
'ci-commit-ref-name': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
17
|
+
'package-release-branch-prefix': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
18
|
+
'utam-version': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
19
|
+
'dry-run': import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
20
|
+
out: import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
21
|
+
'env-file': import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
22
|
+
disabled: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
23
|
+
debug: import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
24
|
+
'flags-dir': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
|
|
25
|
+
};
|
|
26
|
+
run(): Promise<PublishUtamPageObjectsResult>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2026, SimplySF.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Messages } from '@salesforce/core';
|
|
17
|
+
import { Flags, SfCommand } from '@salesforce/sf-plugins-core';
|
|
18
|
+
import { publishUtamPageObjects, } from '../../../../common/build/publishUtamPageObjects.js';
|
|
19
|
+
import { debugFlag, disabledFlag } from '../../../../common/build/flags.js';
|
|
20
|
+
Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
|
|
21
|
+
const messages = Messages.loadMessages('@simplysf/simply-cicd', 'simply.cicd.build.publish-utam-page-objects');
|
|
22
|
+
/** Compiles the project's UTAM page objects for a package version and publishes them to an npm registry. */
|
|
23
|
+
export default class BuildPublishUtamPageObjects extends SfCommand {
|
|
24
|
+
static summary = messages.getMessage('summary');
|
|
25
|
+
static description = messages.getMessage('description');
|
|
26
|
+
static examples = messages.getMessages('examples');
|
|
27
|
+
static flags = {
|
|
28
|
+
...SfCommand.baseFlags,
|
|
29
|
+
...debugFlag,
|
|
30
|
+
...disabledFlag,
|
|
31
|
+
'packaging-devhub': Flags.string({
|
|
32
|
+
summary: messages.getMessage('flags.packaging-devhub.summary'),
|
|
33
|
+
required: true,
|
|
34
|
+
env: 'SIMPLY_CICD_PACKAGING_DEVHUB',
|
|
35
|
+
}),
|
|
36
|
+
'subscriber-package-version-id': Flags.string({
|
|
37
|
+
summary: messages.getMessage('flags.subscriber-package-version-id.summary'),
|
|
38
|
+
}),
|
|
39
|
+
'npm-package-name': Flags.string({
|
|
40
|
+
summary: messages.getMessage('flags.npm-package-name.summary'),
|
|
41
|
+
env: 'SIMPLY_CICD_NPM_PACKAGE_NAME',
|
|
42
|
+
}),
|
|
43
|
+
'npm-registry': Flags.string({
|
|
44
|
+
summary: messages.getMessage('flags.npm-registry.summary'),
|
|
45
|
+
env: 'SIMPLY_CICD_NPM_REGISTRY',
|
|
46
|
+
}),
|
|
47
|
+
'npm-token': Flags.string({
|
|
48
|
+
summary: messages.getMessage('flags.npm-token.summary'),
|
|
49
|
+
env: 'SIMPLY_CICD_NPM_TOKEN',
|
|
50
|
+
}),
|
|
51
|
+
'npm-access': Flags.custom({ options: ['public', 'restricted'] })({
|
|
52
|
+
summary: messages.getMessage('flags.npm-access.summary'),
|
|
53
|
+
env: 'SIMPLY_CICD_NPM_ACCESS',
|
|
54
|
+
}),
|
|
55
|
+
'npm-dist-tag': Flags.string({
|
|
56
|
+
summary: messages.getMessage('flags.npm-dist-tag.summary'),
|
|
57
|
+
}),
|
|
58
|
+
'ci-commit-ref-name': Flags.string({
|
|
59
|
+
summary: messages.getMessage('flags.ci-commit-ref-name.summary'),
|
|
60
|
+
env: 'SIMPLY_CICD_CI_COMMIT_REF_NAME',
|
|
61
|
+
}),
|
|
62
|
+
'package-release-branch-prefix': Flags.string({
|
|
63
|
+
summary: messages.getMessage('flags.package-release-branch-prefix.summary'),
|
|
64
|
+
}),
|
|
65
|
+
'utam-version': Flags.string({
|
|
66
|
+
summary: messages.getMessage('flags.utam-version.summary'),
|
|
67
|
+
default: '^3',
|
|
68
|
+
env: 'SIMPLY_CICD_UTAM_VERSION',
|
|
69
|
+
}),
|
|
70
|
+
'dry-run': Flags.boolean({
|
|
71
|
+
summary: messages.getMessage('flags.dry-run.summary'),
|
|
72
|
+
default: false,
|
|
73
|
+
}),
|
|
74
|
+
out: Flags.string({
|
|
75
|
+
summary: messages.getMessage('flags.out.summary'),
|
|
76
|
+
default: 'subscriberPackageVersionId.env',
|
|
77
|
+
}),
|
|
78
|
+
'env-file': Flags.string({
|
|
79
|
+
summary: messages.getMessage('flags.env-file.summary'),
|
|
80
|
+
default: 'subscriberPackageVersionId.env',
|
|
81
|
+
}),
|
|
82
|
+
};
|
|
83
|
+
async run() {
|
|
84
|
+
const { flags } = await this.parse(BuildPublishUtamPageObjects);
|
|
85
|
+
return publishUtamPageObjects({
|
|
86
|
+
packagingDevhub: flags['packaging-devhub'],
|
|
87
|
+
subscriberPackageVersionId: flags['subscriber-package-version-id'],
|
|
88
|
+
npmPackageName: flags['npm-package-name'],
|
|
89
|
+
npmRegistry: flags['npm-registry'],
|
|
90
|
+
npmToken: flags['npm-token'],
|
|
91
|
+
npmAccess: flags['npm-access'],
|
|
92
|
+
npmDistTag: flags['npm-dist-tag'],
|
|
93
|
+
ciCommitRefName: flags['ci-commit-ref-name'],
|
|
94
|
+
packageReleaseBranchPrefix: flags['package-release-branch-prefix'],
|
|
95
|
+
utamVersion: flags['utam-version'],
|
|
96
|
+
dryRun: flags['dry-run'],
|
|
97
|
+
out: flags.out,
|
|
98
|
+
envFile: flags['env-file'],
|
|
99
|
+
debug: flags.debug,
|
|
100
|
+
disabled: flags.disabled,
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=publish-utam-page-objects.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"publish-utam-page-objects.js","sourceRoot":"","sources":["../../../../../src/commands/simply/cicd/build/publish-utam-page-objects.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EACL,sBAAsB,GAGvB,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAE5E,QAAQ,CAAC,kCAAkC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC7D,MAAM,QAAQ,GAAG,QAAQ,CAAC,YAAY,CAAC,uBAAuB,EAAE,6CAA6C,CAAC,CAAC;AAE/G,4GAA4G;AAC5G,MAAM,CAAC,OAAO,OAAO,2BAA4B,SAAQ,SAAuC;IACvF,MAAM,CAAU,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IACzD,MAAM,CAAU,WAAW,GAAG,QAAQ,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IACjE,MAAM,CAAU,QAAQ,GAAG,QAAQ,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAE5D,MAAM,CAAU,KAAK,GAAG;QAC7B,GAAG,SAAS,CAAC,SAAS;QAC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cAAc,CAAC;YAClC,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;YACxB,GAAG,EAAE,KAAK,CAAC,GAAG;YACd,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC;YAC1B,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,QAAQ,EAAE,KAAK,CAAC,QAAQ;SACzB,CAAC,CAAC;IACL,CAAC"}
|
|
@@ -1,4 +1,19 @@
|
|
|
1
1
|
import { type VcsProviderKind } from '@simplysf/simply-cicd-core';
|
|
2
|
+
/**
|
|
3
|
+
* Whether this build's ref is a release-branch build.
|
|
4
|
+
*
|
|
5
|
+
* Exported for `publishUtamPageObjects`, which derives its npm version from the same
|
|
6
|
+
* release-vs-feature-branch decision this module makes for the git tag.
|
|
7
|
+
*/
|
|
8
|
+
export declare function refIncludesPrefix(ciCommitRefName: string, packageReleaseBranchPrefix?: string): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The annotated git tag this build's package version is recorded under: `v<version>`, suffixed with
|
|
11
|
+
* the package's `branch` attribute or the CI ref unless this is a release-branch build.
|
|
12
|
+
*
|
|
13
|
+
* Exported because `publishUtamPageObjects` derives its npm version from the same suffix, so that
|
|
14
|
+
* the published page-object version reads like the tag rather than being a second, parallel rule.
|
|
15
|
+
*/
|
|
16
|
+
export declare function determineVersionTag(version: string, branchAttribute: string | undefined, ciCommitRefName: string, packageReleaseBranchPrefix?: string): string;
|
|
2
17
|
export type CreatePackageVersionOptions = {
|
|
3
18
|
ciCommitRefName: string;
|
|
4
19
|
ciCommitSha: string;
|
|
@@ -20,7 +20,13 @@ import { createVcsProvider } from '@simplysf/simply-cicd-core';
|
|
|
20
20
|
import { runSf } from '../exec/sfCli.js';
|
|
21
21
|
import { addGitRemote } from '../git.js';
|
|
22
22
|
import { logger } from '../logger.js';
|
|
23
|
-
|
|
23
|
+
/**
|
|
24
|
+
* Whether this build's ref is a release-branch build.
|
|
25
|
+
*
|
|
26
|
+
* Exported for `publishUtamPageObjects`, which derives its npm version from the same
|
|
27
|
+
* release-vs-feature-branch decision this module makes for the git tag.
|
|
28
|
+
*/
|
|
29
|
+
export function refIncludesPrefix(ciCommitRefName, packageReleaseBranchPrefix) {
|
|
24
30
|
return packageReleaseBranchPrefix !== undefined && ciCommitRefName.includes(packageReleaseBranchPrefix);
|
|
25
31
|
}
|
|
26
32
|
function determineBranchArgs(branchAttribute, ciCommitRefName, packageReleaseBranchPrefix) {
|
|
@@ -32,7 +38,14 @@ function determineBranchArgs(branchAttribute, ciCommitRefName, packageReleaseBra
|
|
|
32
38
|
}
|
|
33
39
|
return [];
|
|
34
40
|
}
|
|
35
|
-
|
|
41
|
+
/**
|
|
42
|
+
* The annotated git tag this build's package version is recorded under: `v<version>`, suffixed with
|
|
43
|
+
* the package's `branch` attribute or the CI ref unless this is a release-branch build.
|
|
44
|
+
*
|
|
45
|
+
* Exported because `publishUtamPageObjects` derives its npm version from the same suffix, so that
|
|
46
|
+
* the published page-object version reads like the tag rather than being a second, parallel rule.
|
|
47
|
+
*/
|
|
48
|
+
export function determineVersionTag(version, branchAttribute, ciCommitRefName, packageReleaseBranchPrefix) {
|
|
36
49
|
const versionTag = `v${version}`;
|
|
37
50
|
if (branchAttribute) {
|
|
38
51
|
return `${versionTag}-${branchAttribute}`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPackageVersion.js","sourceRoot":"","sources":["../../../src/common/build/createPackageVersion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,eAAe,EAAoB,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,iBAAiB,EAAwB,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC,
|
|
1
|
+
{"version":3,"file":"createPackageVersion.js","sourceRoot":"","sources":["../../../src/common/build/createPackageVersion.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,IAAI,EAAE,EAAE,MAAM,SAAS,CAAC;AACzC,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,EAAE,0BAA0B,EAAE,eAAe,EAAE,eAAe,EAAoB,MAAM,uBAAuB,CAAC;AACvH,OAAO,EAAE,iBAAiB,EAAwB,MAAM,4BAA4B,CAAC;AACrF,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAItC;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,eAAuB,EAAE,0BAAmC;IAC5F,OAAO,0BAA0B,KAAK,SAAS,IAAI,eAAe,CAAC,QAAQ,CAAC,0BAA0B,CAAC,CAAC;AAC1G,CAAC;AAED,SAAS,mBAAmB,CAC1B,eAAmC,EACnC,eAAuB,EACvB,0BAAmC;IAEnC,IAAI,eAAe,EAAE,CAAC;QACpB,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IACvC,CAAC;IACD,IAAI,CAAC,iBAAiB,CAAC,eAAe,EAAE,0BAA0B,CAAC,EAAE,CAAC;QACpE,OAAO,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IACvC,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CACjC,OAAe,EACf,eAAmC,EACnC,eAAuB,EACvB,0BAAmC;IAEnC,MAAM,UAAU,GAAG,IAAI,OAAO,EAAE,CAAC;IACjC,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