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
CommandParts
Gets every canonically ordered rendered command fragment.
protected override IReadOnlyList<string?> CommandParts { get; }Property Value
DryRun
Reports intended publication without uploading.
public bool DryRun { get; init; }Property Value
Otp
One-time password used for registry authentication.
public string? Otp { get; init; }Property Value
Package
Package specification to publish; null publishes the current project.
public string? Package { get; init; }Property Value
Provenance
Generates provenance when supported by the CI environment.
public bool Provenance { get; init; }Property Value
ProvenanceFile
Uses a pre-generated provenance statement instead.
public string? ProvenanceFile { get; init; }Property Value
Tag
Distribution tag applied to the published version.
public string? Tag { get; init; }