Skip to content

publishUtamPageObjects

publishUtamPageObjects(options): Promise<PublishUtamPageObjectsResult>

Defined in: packages/simply-cicd-core/src/build/publishUtamPageObjects.ts:465

Compile the project’s UTAM page objects for one package version and publish them as an npm package whose version is derived from the Salesforce version number.

Runs after create-package-version, whose 04t it takes as input, so that every Unlocked Package version has a corresponding page-object package a UI-test suite can pin to. See docs/design/0037-utam-page-objects-publish.md for the reasoning, particularly the version mapping and why the compiler config is generated per build rather than read from the repo.

Skips (without failing) when the package didn’t change, when the job is disabled, when no 04t can be found, when the project authors no page objects, or when this exact version is already on the registry. Everything past those guards throws on failure: a missing page-object package would silently break every UI test pinned to that version.

PublishUtamPageObjectsOptions

Promise<PublishUtamPageObjectsResult>