relizy / ReleaseOptions
Interface: ReleaseOptions
Defined in: packages/relizy/src/types.ts:1147
Extends
Properties
access?
optionalaccess?:"public"|"restricted"
Defined in: packages/relizy/src/types.ts:930
NPM access level (e.g. public or restricted)
Inherited from
ai?
optionalai?:boolean
Defined in: packages/relizy/src/types.ts:1240
Override AI configuration for this run true = force-enable AI, false = force-disable AI, undefined = use config
args?
optionalargs?:string[]
Defined in: packages/relizy/src/types.ts:912
Extra arguments of the publish command of every package and registry, after the ones of relizy (e.g. ['--provenance'])
Default
[]Inherited from
buildCmd?
optionalbuildCmd?:string
Defined in: packages/relizy/src/types.ts:938
Command to build your packages before publishing (e.g. pnpm build)
Inherited from
canary?
optionalcanary?:boolean
Defined in: packages/relizy/src/types.ts:1078
Publish a canary release from the current commit, as --canary: a prerelease version (bump.preid, canary by default) with the short sha of the commit, published under the canary npm tag (publish.tag), without commit, tag, push, changelog, provider release nor social post.
Default
falseInherited from
capZeroMajor?
optionalcapZeroMajor?:boolean
Defined in: packages/relizy/src/types.ts:578
Cap commit-detected major bumps to minor while the current version is in the 0.x.y range (semver §4, initial development), so a breaking change does not graduate a 0.x package to 1.0.0 automatically.
Set to false to opt out: a breaking commit then bumps 0.x.y straight to 1.0.0. This only affects commit-based detection; explicit CLI release types (--major, --premajor, …) are never capped. Once the package reaches 1.x, this option is a no-op.
Default
trueInherited from
changelog?
optionalchangelog?:boolean
Defined in: packages/relizy/src/types.ts:1093
Generate changelog files (CHANGELOG.md)
Default
trueInherited from
checkWorkspaceDependencies?
optionalcheckWorkspaceDependencies?:boolean
Defined in: packages/relizy/src/types.ts:980
Before publishing, check the internal dependencies declared with the workspace: protocol (workspace:*, workspace:^, workspace:~) in dependencies, peerDependencies and optionalDependencies: the version the package manager will write must be published by this run or already be on the registry. Fails when the registry confirms the version is missing (the published package could not be installed), warns when the registry cannot be queried.
Default
trueInherited from
PublishConfig.checkWorkspaceDependencies
clean?
optionalclean?:boolean
Defined in: packages/relizy/src/types.ts:1114
Check that the working directory is clean before the release (with bump.clean), a confirmation is asked otherwise
Default
trueInherited from
commit?
optionalcommit?:boolean
Defined in: packages/relizy/src/types.ts:1083
Commit changes and create tag
Default
trueInherited from
config?
optionalconfig?:ResolvedRelizyConfig
Defined in: packages/relizy/src/types.ts:1199
Config already resolved by loadRelizyConfig(): used as is instead of loading the config file (the profile, the overrides and the options of the call still apply over it)
configName?
optionalconfigName?:string
Defined in: packages/relizy/src/types.ts:1168
Default
'relizy'dependencyTypes?
optionaldependencyTypes?: ("dependencies"|"peerDependencies"|"devDependencies")[]
Defined in: packages/relizy/src/types.ts:548
Dependency fields whose internal dependencies bump the package (a patch): when its published range rejects their new version, or on every bump of them, see dependents.
peerDependencies is not included by default: a package is bumped only when the range of its peer dependency rejects the new version, see outOfRangePeers.
Default
['dependencies']Inherited from
dependents?
optionaldependents?:"always"|"out-of-range"
Defined in: packages/relizy/src/types.ts:561
When a package is bumped because of an internal dependency listed in one of the dependencyTypes fields:
out-of-range: only when the range it was published with rejects the new version of the dependency (workspace:*on every bump,workspace:^on a major, a minor in0.xor a prerelease). A specifier that is not a semver range (catalog:,link:,npm:...) counts as out of range. The range is read from itspackage.jsonat its last release, as foroutOfRangePeers.always: on every bump of the dependency, e.g. for a package that bundles its dependency.
Default
'out-of-range'Inherited from
dryRun?
optionaldryRun?:boolean
Defined in: packages/relizy/src/types.ts:1152
Run without side effects
Default
falseforce?
optionalforce?:boolean
Defined in: packages/relizy/src/types.ts:1209
Bump even if there are no commits
Default
falseformatCmd?
optionalformatCmd?:string|false
Defined in: packages/relizy/src/types.ts:679
Command formatting the changelogs once written, run from the root: is replaced by their paths (e.g. eslint --fix ). Without it, the formatter of the root package.json (Biome, Prettier, oxfmt, dprint, else ESLint) formats the changelogs written; false formats nothing.
Default
the formatter detectedInherited from
from?
optionalfrom?:string
Defined in: packages/relizy/src/types.ts:1155
gitTag?
optionalgitTag?:boolean
Defined in: packages/relizy/src/types.ts:1119
Create tag
Default
trueInherited from
groups?
optionalgroups?:string[]
Defined in: packages/relizy/src/types.ts:1249
Only process these version groups (monorepo.groups), by name.
Default
all groupsincludeCommitBody?
optionalincludeCommitBody?:boolean
Defined in: packages/relizy/src/types.ts:689
Include commit body in the changelog.
Default
trueInherited from
ChangelogConfig.includeCommitBody
logLevel?
optionallogLevel?:RelizyLogLevel
Defined in: packages/relizy/src/types.ts:1164
noVerify?
optionalnoVerify?:boolean
Defined in: packages/relizy/src/types.ts:1108
Skip git verification while committing by using --no-verify flag
Default
falseInherited from
onConfirm?
optionalonConfirm?: (plan) =>boolean|Promise<boolean>
Defined in: packages/relizy/src/types.ts:1187
Validates the bump plan instead of the prompt of the terminal, once the versions are computed and before anything is written: false cancels the run as a refused prompt (a RelizyCancelError, nothing written). An error thrown by it fails the run (nothing written, the error as is): throw a RelizyCancelError to cancel instead. Not called with yes, nor with bump.yes: true in the config or the profile. For an application asking in its own interface
Parameters
plan
Returns
boolean | Promise<boolean>
onOtp?
optionalonOtp?: (request) =>string|Promise<string>
Defined in: packages/relizy/src/types.ts:1194
Gives the one-time password the registry asks for, instead of the prompt of the terminal: asked once per registry, then reused for the next packages. An empty password (or none) cancels the publish (a RelizyCancelError; the packages published before stay published), an error thrown by it fails the publish. For an application asking in its own interface
Parameters
request
Returns
string | Promise<string>
onProgress?
optionalonProgress?:RelizyEventListener
Defined in: packages/relizy/src/types.ts:1179
Called with each event of the run (steps started, done, failed or skipped, progress, links, logs, the end): the same events as RELIZY_REPORTER=json, for a program following the run. A listener that throws does not stop the run.
otp?
optionalotp?:string
Defined in: packages/relizy/src/types.ts:934
NPM OTP (e.g. 123456)
Inherited from
outOfRangePeers?
optionaloutOfRangePeers?:"warn"|"error"|"bump"
Defined in: packages/relizy/src/types.ts:608
What to do with a package that is not bumped while the range of one of its peer dependencies, as published, does not accept the new version of that dependency: workspace:* is published as the exact version, so any new version is out of its range; workspace:^ only on a major, or on a prerelease (npm rejects 6.20.0-beta.0 for ^6.19.1). Its consumers would get peer dependency errors (npm) or warnings (pnpm).
The published range is read from the package.json of the package at its last release (its last tag): a peer dependency added since then rejects nothing (no consumer has it), a range changed since then is checked as it was published, and a package never released has nothing out of range.
bump: bump the package, so it is released with an up-to-date range: a patch, or a major when the dependency makes a breaking change. The packages outside of the release (e.g. not in the targeted--group) are reported with a warning.warn: only warn before publishing.error: fail the release before publishing.
Whatever this option, a package released while its peer dependency makes a breaking change its published range rejects is bumped as for a breaking commit (capZeroMajor applies). In unified/selective mode, a peer dependency of another version group gives that bump to the root version.
Independent of dependencyTypes, which bumps the dependents on every bump of their dependencies (or only out of range, see dependents).
Default
'bump'Inherited from
overrides?
optionaloverrides?:RelizyConfigOverrides
Defined in: packages/relizy/src/types.ts:1204
Options applied over the config file (or over config), under the options of the call: a local overlay without writing a file. The hooks of the overlay run after those of the config.
packageManager?
optionalpackageManager?:PackageManager
Defined in: packages/relizy/src/types.ts:916
Package manager (e.g. pnpm, npm, yarn or bun)
Inherited from
prComment?
optionalprComment?:boolean
Defined in: packages/relizy/src/types.ts:1130
Post a comment with the outcome of the release on the pull request
Default
trueInherited from
prCommentMode?
optionalprCommentMode?:PrCommentMode
Defined in: packages/relizy/src/types.ts:1261
Override of prComment.mode for this run
preid?
optionalpreid?:string
Defined in: packages/relizy/src/types.ts:529
Prerelease identifier (e.g. 'beta', 'alpha')
Inherited from
privatePackages?
optionalprivatePackages?:PrivatePackages
Defined in: packages/relizy/src/types.ts:1235
Override of monorepo.privatePackages: release releases the private packages too
prNumber?
optionalprNumber?:number
Defined in: packages/relizy/src/types.ts:1231
Override PR/MR number for PR comment features
profile?
optionalprofile?:string
Defined in: packages/relizy/src/types.ts:1173
Release profile to apply (profiles of the config), as --profile: its options come after the config file and before the options of this run
provider?
optionalprovider?:GitProvider
Defined in: packages/relizy/src/types.ts:1218
Git provider (e.g. github or gitlab)
Default
'github'providerRelease?
optionalproviderRelease?:boolean
Defined in: packages/relizy/src/types.ts:1098
Publish release to your repository (github or gitlab)
Default
trueInherited from
publish?
optionalpublish?:boolean
Defined in: packages/relizy/src/types.ts:1103
Publish release to your registry
Default
trueInherited from
publishToken?
optionalpublishToken?:string
Defined in: packages/relizy/src/types.ts:1227
NPM token (e.g. "123456")
push?
optionalpush?:boolean
Defined in: packages/relizy/src/types.ts:1088
Push changes to your repository (commit and tag(s))
Default
trueInherited from
registries?
optionalregistries?:RegistryTarget[]
Defined in: packages/relizy/src/types.ts:958
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. Without registry, only these registries are used: a package that no entry covers goes to the registry of the npm config.
Inherited from
registry?
optionalregistry?:string
Defined in: packages/relizy/src/types.ts:922
NPM registry URL (e.g. https://registry.npmjs.org/). Without it, the registry of the npm config (.npmrc), unless registries is set: the packages then go only to the declared registries
Inherited from
report?
optionalreport?:ReleaseReportConfig
Defined in: packages/relizy/src/types.ts:1144
Report of the release, to run something only when a release happens: the outputs and the summary of GitHub Actions, a JSON file, a dotenv file (GitLab CI). Written in dry-run too, where released is false.
Default
{ github: true }Inherited from
rootChangelog?
optionalrootChangelog?:boolean
Defined in: packages/relizy/src/types.ts:684
Generate changelog at root level with all changes
Default
trueInherited from
safetyCheck?
optionalsafetyCheck?:boolean
Defined in: packages/relizy/src/types.ts:1223
Run the safety checks before writing anything: tokens, registry access, branch up to date (false skips them, as --no-safety-check)
Default
trueOverrides
safetyCheckTimeout?
optionalsafetyCheckTimeout?:number
Defined in: packages/relizy/src/types.ts:950
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
15000Inherited from
PublishConfig.safetyCheckTimeout
skipExistingVersions?
optionalskipExistingVersions?:boolean
Defined in: packages/relizy/src/types.ts:969
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
falseInherited from
PublishConfig.skipExistingVersions
slackFormat?
optionalslackFormat?:SocialChangelog
Defined in: packages/relizy/src/types.ts:1244
Override social.slack.changelog for this run
social?
optionalsocial?:boolean
Defined in: packages/relizy/src/types.ts:1125
Post release announcements to social media platforms (the platforms enabled in social)
Default
trueInherited from
suffix?
optionalsuffix?:string
Defined in: packages/relizy/src/types.ts:1213
Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)
Overrides
sync?
optionalsync?:boolean
Defined in: packages/relizy/src/types.ts:1137
Merge the released branch into the branches of the rules of sync that match it, once the release commit is pushed (nothing when no rule matches). A conflict or a refused push does not fail the release: the step fails and says how to merge by hand
Default
trueInherited from
syncBranches?
optionalsyncBranches?:string[]
Defined in: packages/relizy/src/types.ts:1253
The branches the released branch is merged into for this run, instead of the rules of sync
syncMode?
optionalsyncMode?:SyncMode
Defined in: packages/relizy/src/types.ts:1257
Override of sync.mode and of the modes of its rules for this run
tag?
optionaltag?:string
Defined in: packages/relizy/src/types.ts:926
NPM tag (e.g. latest)
Inherited from
to?
optionalto?:string
Defined in: packages/relizy/src/types.ts:1158
token?
optionaltoken?:string
Defined in: packages/relizy/src/types.ts:1161
type?
optionaltype?:BumpReleaseType
Defined in: packages/relizy/src/types.ts:525
Release type (e.g. 'major', 'minor', 'patch', 'prerelease', 'prepatch', 'preminor', 'premajor')
Default
'release'Inherited from
yes?
optionalyes?:boolean
Defined in: packages/relizy/src/types.ts:566
Skip confirmation prompt about bumping packages
Default
false