Skip to content

Repository script API / publish-tool-packages / publishToolPackages

Function: publishToolPackages() ​

publishToolPackages(options): Promise<void>

Defined in: publish-tool-packages.mjs:37

Publishes selected public tools sequentially after validating their release tags, packed files, exact prerequisites, and registry integrity.

Parameters ​

options ​

Publication inputs and injectable package, registry, and publish adapters.

getRegistryIntegrity? ​

(packageName, version) => Promise<string | null> = getNpmRegistryIntegrity

Reads one exact version; null means definitive not found.

log? ​

(message) => void = console.log

Receives progress messages.

packPackage? ​

(packagePath, root) => Promise<object> = packPublicToolPackage

Creates and inspects one package tarball.

publishPackage? ​

(release) => Promise<void> = publishNpmTarball

Publishes one verified tarball.

releaseMetadata ​

Record<string, unknown>

Release Please outputs keyed by path and field.

root ​

string

Repository root that contains the selected tool packages.

selectedPaths ​

string[]

Released workspace paths from Release Please.

Returns ​

Promise<void>

Resolves after every selected package is published or verified as identical.

Throws ​

When release metadata, package contents, dependencies, registry responses, or integrity disagree.

pumpkin-plugins documentation