Skip to content

resolveSubscriberPackageVersionId

resolveSubscriberPackageVersionId(options): Promise<string | undefined>

Defined in: packages/simply-cicd-core/src/build/packageVersionArtifact.ts:134

Find the 04t this run should publish page objects for.

Three sources, because the command is useful from two pipeline shapes and they surface the value differently: an explicit flag; SUBSCRIBER_PACKAGE_VERSION_ID in the environment, which is how a separate job receives create-package-version’s dotenv report artifact; and the dotenv file itself, which is how the same job sees it, since a dotenv report only ever reaches other jobs.

An explicit flag that isn’t a 04t throws — the caller asked for something specific and got it wrong. A malformed value discovered rather than passed only warns, and the search continues.

ResolveSubscriberPackageVersionIdOptions

Promise<string | undefined>

The ID, or undefined when no source has one.

If flagValue is not a subscriber package version ID.