relizy / ReleaseOptions
Interface: ReleaseOptions
Defined in: packages/relizy/src/types.ts:880
Extends
Properties
access?
optionalaccess?:"public"|"restricted"
Defined in: packages/relizy/src/types.ts:697
NPM access level (e.g. public or restricted)
Inherited from
ai?
optionalai?:boolean
Defined in: packages/relizy/src/types.ts:942
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:679
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:705
Command to build your packages before publishing (e.g. pnpm build)
Inherited from
canary?
optionalcanary?:boolean
Defined in: packages/relizy/src/types.ts:933
Publish a canary release from the current commit
Default
falsecapZeroMajor?
optionalcapZeroMajor?:boolean
Defined in: packages/relizy/src/types.ts:402
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:833
Generate changelog files (CHANGELOG.md)
Default
trueInherited from
checkWorkspaceDependencies?
optionalcheckWorkspaceDependencies?:boolean
Defined in: packages/relizy/src/types.ts:747
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:854
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:823
Commit changes and create tag
Default
trueInherited from
configName?
optionalconfigName?:string
Defined in: packages/relizy/src/types.ts:901
Default
'relizy'dependencyTypes?
optionaldependencyTypes?: ("dependencies"|"peerDependencies"|"devDependencies")[]
Defined in: packages/relizy/src/types.ts:373
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:385
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.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:885
Run without side effects
Default
falseforce?
optionalforce?:boolean
Defined in: packages/relizy/src/types.ts:906
Bump even if there are no commits
Default
falseformatCmd?
optionalformatCmd?:string|false
Defined in: packages/relizy/src/types.ts:482
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:888
gitTag?
optionalgitTag?:boolean
Defined in: packages/relizy/src/types.ts:859
Create tag
Default
trueInherited from
groups?
optionalgroups?:string[]
Defined in: packages/relizy/src/types.ts:951
Only process these version groups (monorepo.groups), by name.
Default
all groupsincludeCommitBody?
optionalincludeCommitBody?:boolean
Defined in: packages/relizy/src/types.ts:492
Include commit body in the changelog.
Default
trueInherited from
ChangelogConfig.includeCommitBody
logLevel?
optionallogLevel?:RelizyLogLevel
Defined in: packages/relizy/src/types.ts:897
noVerify?
optionalnoVerify?:boolean
Defined in: packages/relizy/src/types.ts:848
Skip git verification while committing by using --no-verify flag
Default
falseInherited from
otp?
optionalotp?:string
Defined in: packages/relizy/src/types.ts:701
NPM OTP (e.g. 123456)
Inherited from
outOfRangePeers?
optionaloutOfRangePeers?:"error"|"warn"|"bump"
Defined in: packages/relizy/src/types.ts:427
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).
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
packageManager?
optionalpackageManager?:PackageManager
Defined in: packages/relizy/src/types.ts:683
Package manager (e.g. pnpm, npm, yarn or bun)
Inherited from
prComment?
optionalprComment?:boolean
Defined in: packages/relizy/src/types.ts:870
Post a comment with the outcome of the release on the pull request
Default
trueInherited from
preid?
optionalpreid?:string
Defined in: packages/relizy/src/types.ts:358
Prerelease identifier (e.g. 'beta', 'alpha')
Inherited from
privatePackages?
optionalprivatePackages?:PrivatePackages
Defined in: packages/relizy/src/types.ts:937
Override of monorepo.privatePackages: release releases the private packages too
prNumber?
optionalprNumber?:number
Defined in: packages/relizy/src/types.ts:928
Override PR/MR number for PR comment features
provider?
optionalprovider?:GitProvider
Defined in: packages/relizy/src/types.ts:915
Git provider (e.g. github or gitlab)
Default
'github'providerRelease?
optionalproviderRelease?:boolean
Defined in: packages/relizy/src/types.ts:838
Publish release to your repository (github or gitlab)
Default
trueInherited from
publish?
optionalpublish?:boolean
Defined in: packages/relizy/src/types.ts:843
Publish release to your registry
Default
trueInherited from
publishToken?
optionalpublishToken?:string
Defined in: packages/relizy/src/types.ts:924
NPM token (e.g. "123456")
push?
optionalpush?:boolean
Defined in: packages/relizy/src/types.ts:828
Push changes to your repository (commit and tag(s))
Default
trueInherited from
registries?
optionalregistries?:RegistryTarget[]
Defined in: packages/relizy/src/types.ts:725
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:689
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:877
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:487
Generate changelog at root level with all changes
Default
trueInherited from
safetyCheck?
optionalsafetyCheck?:boolean
Defined in: packages/relizy/src/types.ts:920
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:717
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:736
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:946
Override social.slack.changelog for this run
social?
optionalsocial?:boolean
Defined in: packages/relizy/src/types.ts:865
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:910
Custom suffix for prerelease versions - replace the last .X with .suffix (e.g. 1.0.0-beta.0 -> 1.0.0-beta.suffix)
tag?
optionaltag?:string
Defined in: packages/relizy/src/types.ts:693
NPM tag (e.g. latest)
Inherited from
to?
optionalto?:string
Defined in: packages/relizy/src/types.ts:891
token?
optionaltoken?:string
Defined in: packages/relizy/src/types.ts:894
type?
optionaltype?:BumpReleaseType
Defined in: packages/relizy/src/types.ts:354
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:390
Skip confirmation prompt about bumping packages
Default
false