---
url: https://relizy.dev/typedoc/interfaces/PublishOptions.md
---
[relizy](../index.md) / PublishOptions

# Interface: PublishOptions

Defined in: [packages/relizy/src/types.ts:983](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L983)

## Extends

* [`PublishConfig`](PublishConfig.md)

## Properties

### access?

> `optional` **access?**: `"public"` | `"restricted"`

Defined in: [packages/relizy/src/types.ts:930](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L930)

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

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`access`](PublishConfig.md#access)

***

### args?

> `optional` **args?**: `string`\[]

Defined in: [packages/relizy/src/types.ts:912](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L912)

Extra arguments of the publish command of every package and registry,
after the ones of relizy (e.g. `['--provenance']`)

#### Default

```ts
[]
```

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`args`](PublishConfig.md#args)

***

### buildCmd?

> `optional` **buildCmd?**: `string`

Defined in: [packages/relizy/src/types.ts:938](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L938)

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

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`buildCmd`](PublishConfig.md#buildcmd)

***

### bumpResult?

> `optional` **bumpResult?**: [`BumpResultTruthy`](BumpResultTruthy.md)

Defined in: [packages/relizy/src/types.ts:1001](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1001)

Bump result

***

### checkWorkspaceDependencies?

> `optional` **checkWorkspaceDependencies?**: `boolean`

Defined in: [packages/relizy/src/types.ts:980](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L980)

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`](PublishConfig.md).[`checkWorkspaceDependencies`](PublishConfig.md#checkworkspacedependencies)

***

### config?

> `optional` **config?**: [`ResolvedRelizyConfig`](../type-aliases/ResolvedRelizyConfig.md)

Defined in: [packages/relizy/src/types.ts:997](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L997)

Use custom config

***

### configName?

> `optional` **configName?**: `string`

Defined in: [packages/relizy/src/types.ts:1011](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1011)

Custom config file name (e.g. `relizy.standalone` for `relizy.standalone.config.ts`), or the path of the
config file: absolute, or relative to the project with its extension (`/configs/relizy.config.ts`)

#### Default

```ts
'relizy'
```

***

### dryRun?

> `optional` **dryRun?**: `boolean`

Defined in: [packages/relizy/src/types.ts:993](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L993)

Run without side effects

#### Default

```ts
false
```

***

### force?

> `optional` **force?**: `boolean`

Defined in: [packages/relizy/src/types.ts:1038](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1038)

Bump even if there are no commits

#### Default

```ts
false
```

***

### groups?

> `optional` **groups?**: `string`\[]

Defined in: [packages/relizy/src/types.ts:1043](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1043)

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

#### Default

```ts
all groups
```

***

### logLevel?

> `optional` **logLevel?**: [`RelizyLogLevel`](../type-aliases/RelizyLogLevel.md)

Defined in: [packages/relizy/src/types.ts:1005](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1005)

Set log level

***

### onOtp?

> `optional` **onOtp?**: (`request`) => `string` | `Promise`<`string`>

Defined in: [packages/relizy/src/types.ts:1029](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1029)

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`](OtpRequest.md)

#### Returns

`string` | `Promise`<`string`>

***

### onProgress?

> `optional` **onProgress?**: [`RelizyEventListener`](../type-aliases/RelizyEventListener.md)

Defined in: [packages/relizy/src/types.ts:1022](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1022)

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](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L934)

NPM OTP (e.g. `123456`)

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`otp`](PublishConfig.md#otp)

***

### packageManager?

> `optional` **packageManager?**: [`PackageManager`](../type-aliases/PackageManager.md)

Defined in: [packages/relizy/src/types.ts:916](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L916)

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

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`packageManager`](PublishConfig.md#packagemanager)

***

### profile?

> `optional` **profile?**: `string`

Defined in: [packages/relizy/src/types.ts:1016](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1016)

Release profile to apply (`profiles` of the config), as `--profile`: its options
come after the config file and before the options of this run

***

### registries?

> `optional` **registries?**: [`RegistryTarget`](RegistryTarget.md)\[]

Defined in: [packages/relizy/src/types.ts:958](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L958)

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`](PublishConfig.md).[`registries`](PublishConfig.md#registries)

***

### registry?

> `optional` **registry?**: `string`

Defined in: [packages/relizy/src/types.ts:922](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L922)

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`](PublishConfig.md).[`registry`](PublishConfig.md#registry)

***

### safetyCheck?

> `optional` **safetyCheck?**: `boolean`

Defined in: [packages/relizy/src/types.ts:943](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L943)

Authenticate to each registry the packages need (`whoami`) before publishing

#### Default

```ts
true
```

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`safetyCheck`](PublishConfig.md#safetycheck)

***

### safetyCheckTimeout?

> `optional` **safetyCheckTimeout?**: `number`

Defined in: [packages/relizy/src/types.ts:950](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L950)

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`](PublishConfig.md).[`safetyCheckTimeout`](PublishConfig.md#safetychecktimeout)

***

### skipExistingVersions?

> `optional` **skipExistingVersions?**: `boolean`

Defined in: [packages/relizy/src/types.ts:969](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L969)

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`](PublishConfig.md).[`skipExistingVersions`](PublishConfig.md#skipexistingversions)

***

### suffix?

> `optional` **suffix?**: `string`

Defined in: [packages/relizy/src/types.ts:1033](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L1033)

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:926](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L926)

NPM tag (e.g. `latest`)

#### Inherited from

[`PublishConfig`](PublishConfig.md).[`tag`](PublishConfig.md#tag)

***

### token?

> `optional` **token?**: `string`

Defined in: [packages/relizy/src/types.ts:988](https://github.com/LouisMazel/relizy/blob/b6643ceb9b0195df93c3f9f14cf5200f7ccc2322/packages/relizy/src/types.ts#L988)

Registry token (npm, pnpm and bun, injected via `.npmrc`), instead of
`tokens.registry`. Yarn is not supported (it uses `.yarnrc.yml`).
