relizy / PublishConfig
Type Alias: PublishConfig
PublishConfig =
IChangelogConfig["publish"] &object
Defined in: src/types.ts:549
Type Declaration
access?
optionalaccess?:"public"|"restricted"
NPM access level (e.g. public or restricted)
buildCmd?
optionalbuildCmd?:string
Command to build your packages before publishing (e.g. pnpm build)
otp?
optionalotp?:string
NPM OTP (e.g. 123456)
packageManager?
optionalpackageManager?:PackageManager
Package manager (e.g. pnpm, npm, yarn or bun)
packages?
optionalpackages?:string[]
Glob pattern matching for packages to publish
registries?
optionalregistries?:RegistryTarget[]
Additional registries to publish to, on top of registry (if set). Entries without packageFilter apply to every package (mirroring); entries with packageFilter only apply to packages matching one of the glob patterns. Fully additive: leaving this unset preserves the single-registry behavior.
registry?
optionalregistry?:string
NPM registry URL (e.g. https://registry.npmjs.org/)
safetyCheck?
optionalsafetyCheck?:boolean
Skip safety check
Default
truesafetyCheckTimeout?
optionalsafetyCheckTimeout?:number
Maximum time in milliseconds for the registry authentication safety check before it is aborted. Prevents the release from hanging indefinitely when the registry (or a proxy) never answers.
Default
15000skipExistingVersions?
optionalskipExistingVersions?:boolean
Skip a package (per registry) instead of failing when its version already exists on the registry. Makes re-running a release idempotent: a retried job whose version is already published (e.g. a canary rerun on the same commit, or a partially completed publish) succeeds and only publishes what is missing, rather than crashing on the registry's "cannot overwrite" error. When disabled (the default), that situation still fails, but with a clear error message instead of the raw registry error.
Default
falsetag?
optionaltag?:string
NPM tag (e.g. latest)
token?
optionaltoken?:string
NPM token (e.g. 123456) - supported for npm, pnpm and bun (injected via .npmrc). Yarn is not supported (it uses .yarnrc.yml).