Table of Contents

Class NpmPublish

Namespace
DotNetDo
Assembly
DotNetDo.Core.dll

Publishes an npm package to the configured registry.

public sealed record NpmPublish : NpmWorkspaceCommand, IEquatable<ExecOptions>, IEquatable<ToolCommand>, IEquatable<ToolCommand<ExecResult>>, IEquatable<ExecToolCommand>, IEquatable<NpmWorkspaceCommand>, IEquatable<NpmPublish>

Inheritance

Implements

Properties

Access

Registry access level for the package.

public NpmAccess? Access { get; init; }

Property Value

NpmAccess?

CommandParts

Gets every canonically ordered rendered command fragment.

protected override IReadOnlyList<string?> CommandParts { get; }

Property Value

IReadOnlyList<string?>

DryRun

Reports intended publication without uploading.

public bool DryRun { get; init; }

Property Value

bool

Otp

One-time password used for registry authentication.

public string? Otp { get; init; }

Property Value

string?

Package

Package specification to publish; null publishes the current project.

public string? Package { get; init; }

Property Value

string?

Provenance

Generates provenance when supported by the CI environment.

public bool Provenance { get; init; }

Property Value

bool

ProvenanceFile

Uses a pre-generated provenance statement instead.

public string? ProvenanceFile { get; init; }

Property Value

string?

Tag

Distribution tag applied to the published version.

public string? Tag { get; init; }

Property Value

string?