Skip to content

relizy / ReleaseOptions

Interface: ReleaseOptions ​

Defined in: packages/relizy/src/types.ts:1147

Extends ​

Properties ​

access? ​

optional access?: "public" | "restricted"

Defined in: packages/relizy/src/types.ts:930

NPM access level (e.g. public or restricted)

Inherited from ​

PublishConfig.access


ai? ​

optional ai?: 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? ​

optional args?: 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 ​

ts
[]

Inherited from ​

PublishConfig.args


buildCmd? ​

optional buildCmd?: string

Defined in: packages/relizy/src/types.ts:938

Command to build your packages before publishing (e.g. pnpm build)

Inherited from ​

PublishConfig.buildCmd


canary? ​

optional canary?: 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 ​

ts
false

Inherited from ​

ReleaseConfig.canary


capZeroMajor? ​

optional capZeroMajor?: 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 ​

ts
true

Inherited from ​

BumpConfig.capZeroMajor


changelog? ​

optional changelog?: boolean

Defined in: packages/relizy/src/types.ts:1093

Generate changelog files (CHANGELOG.md)

Default ​

ts
true

Inherited from ​

ReleaseConfig.changelog


checkWorkspaceDependencies? ​

optional checkWorkspaceDependencies?: 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 ​

ts
true

Inherited from ​

PublishConfig.checkWorkspaceDependencies


clean? ​

optional clean?: 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 ​

ts
true

Inherited from ​

ReleaseConfig.clean


commit? ​

optional commit?: boolean

Defined in: packages/relizy/src/types.ts:1083

Commit changes and create tag

Default ​

ts
true

Inherited from ​

ReleaseConfig.commit


config? ​

optional config?: 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? ​

optional configName?: string

Defined in: packages/relizy/src/types.ts:1168

Default ​

ts
'relizy'

dependencyTypes? ​

optional dependencyTypes?: ("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 ​

ts
['dependencies']

Inherited from ​

BumpConfig.dependencyTypes


dependents? ​

optional dependents?: "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 in 0.x or a prerelease). A specifier that is not a semver range (catalog:, link:, npm:...) counts as out of range. The range is read from its package.json at its last release, as for outOfRangePeers.
  • always: on every bump of the dependency, e.g. for a package that bundles its dependency.

Default ​

ts
'out-of-range'

Inherited from ​

BumpConfig.dependents


dryRun? ​

optional dryRun?: boolean

Defined in: packages/relizy/src/types.ts:1152

Run without side effects

Default ​

ts
false

force? ​

optional force?: boolean

Defined in: packages/relizy/src/types.ts:1209

Bump even if there are no commits

Default ​

ts
false

formatCmd? ​

optional formatCmd?: 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 ​

ts
the formatter detected

Inherited from ​

ChangelogConfig.formatCmd


from? ​

optional from?: string

Defined in: packages/relizy/src/types.ts:1155


gitTag? ​

optional gitTag?: boolean

Defined in: packages/relizy/src/types.ts:1119

Create tag

Default ​

ts
true

Inherited from ​

ReleaseConfig.gitTag


groups? ​

optional groups?: string[]

Defined in: packages/relizy/src/types.ts:1249

Only process these version groups (monorepo.groups), by name.

Default ​

ts
all groups

includeCommitBody? ​

optional includeCommitBody?: boolean

Defined in: packages/relizy/src/types.ts:689

Include commit body in the changelog.

Default ​

ts
true

Inherited from ​

ChangelogConfig.includeCommitBody


logLevel? ​

optional logLevel?: RelizyLogLevel

Defined in: packages/relizy/src/types.ts:1164


noVerify? ​

optional noVerify?: boolean

Defined in: packages/relizy/src/types.ts:1108

Skip git verification while committing by using --no-verify flag

Default ​

ts
false

Inherited from ​

ReleaseConfig.noVerify


onConfirm? ​

optional onConfirm?: (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 ​

ConfirmPlan

Returns ​

boolean | Promise<boolean>


onOtp? ​

optional onOtp?: (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 ​

OtpRequest

Returns ​

string | Promise<string>


onProgress? ​

optional onProgress?: 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? ​

optional otp?: string

Defined in: packages/relizy/src/types.ts:934

NPM OTP (e.g. 123456)

Inherited from ​

PublishConfig.otp


outOfRangePeers? ​

optional outOfRangePeers?: "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 ​

ts
'bump'

Inherited from ​

BumpConfig.outOfRangePeers


overrides? ​

optional overrides?: 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? ​

optional packageManager?: PackageManager

Defined in: packages/relizy/src/types.ts:916

Package manager (e.g. pnpm, npm, yarn or bun)

Inherited from ​

PublishConfig.packageManager


prComment? ​

optional prComment?: boolean

Defined in: packages/relizy/src/types.ts:1130

Post a comment with the outcome of the release on the pull request

Default ​

ts
true

Inherited from ​

ReleaseConfig.prComment


prCommentMode? ​

optional prCommentMode?: PrCommentMode

Defined in: packages/relizy/src/types.ts:1261

Override of prComment.mode for this run


preid? ​

optional preid?: string

Defined in: packages/relizy/src/types.ts:529

Prerelease identifier (e.g. 'beta', 'alpha')

Inherited from ​

BumpConfig.preid


privatePackages? ​

optional privatePackages?: PrivatePackages

Defined in: packages/relizy/src/types.ts:1235

Override of monorepo.privatePackages: release releases the private packages too


prNumber? ​

optional prNumber?: number

Defined in: packages/relizy/src/types.ts:1231

Override PR/MR number for PR comment features


profile? ​

optional profile?: 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? ​

optional provider?: GitProvider

Defined in: packages/relizy/src/types.ts:1218

Git provider (e.g. github or gitlab)

Default ​

ts
'github'

providerRelease? ​

optional providerRelease?: boolean

Defined in: packages/relizy/src/types.ts:1098

Publish release to your repository (github or gitlab)

Default ​

ts
true

Inherited from ​

ReleaseConfig.providerRelease


publish? ​

optional publish?: boolean

Defined in: packages/relizy/src/types.ts:1103

Publish release to your registry

Default ​

ts
true

Inherited from ​

ReleaseConfig.publish


publishToken? ​

optional publishToken?: string

Defined in: packages/relizy/src/types.ts:1227

NPM token (e.g. "123456")


push? ​

optional push?: boolean

Defined in: packages/relizy/src/types.ts:1088

Push changes to your repository (commit and tag(s))

Default ​

ts
true

Inherited from ​

ReleaseConfig.push


registries? ​

optional registries?: 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 ​

PublishConfig.registries


registry? ​

optional registry?: 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 ​

PublishConfig.registry


report? ​

optional report?: 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 ​

ts
{ github: true }

Inherited from ​

ReleaseConfig.report


rootChangelog? ​

optional rootChangelog?: boolean

Defined in: packages/relizy/src/types.ts:684

Generate changelog at root level with all changes

Default ​

ts
true

Inherited from ​

ChangelogConfig.rootChangelog


safetyCheck? ​

optional safetyCheck?: 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 ​

ts
true

Overrides ​

PublishConfig.safetyCheck


safetyCheckTimeout? ​

optional safetyCheckTimeout?: 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 ​

ts
15000

Inherited from ​

PublishConfig.safetyCheckTimeout


skipExistingVersions? ​

optional skipExistingVersions?: 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 ​

ts
false

Inherited from ​

PublishConfig.skipExistingVersions


slackFormat? ​

optional slackFormat?: SocialChangelog

Defined in: packages/relizy/src/types.ts:1244

Override social.slack.changelog for this run


social? ​

optional social?: boolean

Defined in: packages/relizy/src/types.ts:1125

Post release announcements to social media platforms (the platforms enabled in social)

Default ​

ts
true

Inherited from ​

ReleaseConfig.social


suffix? ​

optional suffix?: 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 ​

BumpConfig.suffix


sync? ​

optional sync?: 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 ​

ts
true

Inherited from ​

ReleaseConfig.sync


syncBranches? ​

optional syncBranches?: 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? ​

optional syncMode?: SyncMode

Defined in: packages/relizy/src/types.ts:1257

Override of sync.mode and of the modes of its rules for this run


tag? ​

optional tag?: string

Defined in: packages/relizy/src/types.ts:926

NPM tag (e.g. latest)

Inherited from ​

PublishConfig.tag


to? ​

optional to?: string

Defined in: packages/relizy/src/types.ts:1158


token? ​

optional token?: string

Defined in: packages/relizy/src/types.ts:1161


type? ​

optional type?: BumpReleaseType

Defined in: packages/relizy/src/types.ts:525

Release type (e.g. 'major', 'minor', 'patch', 'prerelease', 'prepatch', 'preminor', 'premajor')

Default ​

ts
'release'

Inherited from ​

BumpConfig.type


yes? ​

optional yes?: boolean

Defined in: packages/relizy/src/types.ts:566

Skip confirmation prompt about bumping packages

Default ​

ts
false

Inherited from ​

BumpConfig.yes