Skip to content

relizy / ReleaseOptions

Interface: ReleaseOptions ​

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

Extends ​

Properties ​

access? ​

optional access?: "public" | "restricted"

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

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

Inherited from ​

PublishConfig.access


ai? ​

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

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

ts
[]

Inherited from ​

PublishConfig.args


buildCmd? ​

optional buildCmd?: string

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

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:933

Publish a canary release from the current commit

Default ​

ts
false

capZeroMajor? ​

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

ts
true

Inherited from ​

BumpConfig.capZeroMajor


changelog? ​

optional changelog?: boolean

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

Generate changelog files (CHANGELOG.md)

Default ​

ts
true

Inherited from ​

ReleaseConfig.changelog


checkWorkspaceDependencies? ​

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

ts
true

Inherited from ​

PublishConfig.checkWorkspaceDependencies


clean? ​

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

ts
true

Inherited from ​

ReleaseConfig.clean


commit? ​

optional commit?: boolean

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

Commit changes and create tag

Default ​

ts
true

Inherited from ​

ReleaseConfig.commit


configName? ​

optional configName?: string

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

Default ​

ts
'relizy'

dependencyTypes? ​

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

ts
['dependencies']

Inherited from ​

BumpConfig.dependencyTypes


dependents? ​

optional dependents?: "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 in 0.x or 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 ​

ts
'out-of-range'

Inherited from ​

BumpConfig.dependents


dryRun? ​

optional dryRun?: boolean

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

Run without side effects

Default ​

ts
false

force? ​

optional force?: boolean

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

Bump even if there are no commits

Default ​

ts
false

formatCmd? ​

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

ts
the formatter detected

Inherited from ​

ChangelogConfig.formatCmd


from? ​

optional from?: string

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


gitTag? ​

optional gitTag?: boolean

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

Create tag

Default ​

ts
true

Inherited from ​

ReleaseConfig.gitTag


groups? ​

optional groups?: string[]

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

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

Default ​

ts
all groups

includeCommitBody? ​

optional includeCommitBody?: boolean

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

Include commit body in the changelog.

Default ​

ts
true

Inherited from ​

ChangelogConfig.includeCommitBody


logLevel? ​

optional logLevel?: RelizyLogLevel

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


noVerify? ​

optional noVerify?: boolean

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

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

Default ​

ts
false

Inherited from ​

ReleaseConfig.noVerify


otp? ​

optional otp?: string

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

NPM OTP (e.g. 123456)

Inherited from ​

PublishConfig.otp


outOfRangePeers? ​

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

ts
'bump'

Inherited from ​

BumpConfig.outOfRangePeers


packageManager? ​

optional packageManager?: PackageManager

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

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

Inherited from ​

PublishConfig.packageManager


prComment? ​

optional prComment?: boolean

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

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

Default ​

ts
true

Inherited from ​

ReleaseConfig.prComment


preid? ​

optional preid?: string

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

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

Inherited from ​

BumpConfig.preid


privatePackages? ​

optional privatePackages?: PrivatePackages

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

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


prNumber? ​

optional prNumber?: number

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

Override PR/MR number for PR comment features


provider? ​

optional provider?: GitProvider

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

Git provider (e.g. github or gitlab)

Default ​

ts
'github'

providerRelease? ​

optional providerRelease?: boolean

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

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:843

Publish release to your registry

Default ​

ts
true

Inherited from ​

ReleaseConfig.publish


publishToken? ​

optional publishToken?: string

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

NPM token (e.g. "123456")


push? ​

optional push?: boolean

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

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: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 ​

PublishConfig.registries


registry? ​

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

PublishConfig.registry


report? ​

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

ts
{ github: true }

Inherited from ​

ReleaseConfig.report


rootChangelog? ​

optional rootChangelog?: boolean

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

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:920

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: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 ​

ts
15000

Inherited from ​

PublishConfig.safetyCheckTimeout


skipExistingVersions? ​

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

ts
false

Inherited from ​

PublishConfig.skipExistingVersions


slackFormat? ​

optional slackFormat?: SocialChangelog

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

Override social.slack.changelog for this run


social? ​

optional social?: boolean

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

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

optional tag?: string

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

NPM tag (e.g. latest)

Inherited from ​

PublishConfig.tag


to? ​

optional to?: string

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


token? ​

optional token?: string

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


type? ​

optional type?: BumpReleaseType

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

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:390

Skip confirmation prompt about bumping packages

Default ​

ts
false

Inherited from ​

BumpConfig.yes