Skip to content

publishAerPackage

publishAerPackage(options): Promise<PublishAerPackageResult>

Defined in: packages/simply-cicd-core/src/build/publishAerPackage.ts:404

Build the project’s aer package (.pkg) for one package version and upload it to an artifact repository, under a path 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 matching aer package a consumer can test against locally. See docs/design/0059-aer-package-publish.md in simply-plugins for the reasoning, particularly why the file name carries the namespace and the version lives only in the path.

Skips (without failing) when the package didn’t change, when the job is disabled, when no 04t can be found, when the package has no Apex, or when this exact version is already uploaded. Everything past those guards throws on failure: a missing aer package would silently break every consumer pinned to that version.

PublishAerPackageOptions

Promise<PublishAerPackageResult>