@Generated(value="jsii-pacmak/1.47.0 (build 86d2c33)", date="2021-12-20T00:39:28.918Z") @Stability(value=Experimental) public interface NpmPublishOptions extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
NpmPublishOptions.Builder
A builder for
NpmPublishOptions |
static class |
NpmPublishOptions.Jsii$Proxy
An implementation for
NpmPublishOptions |
| Modifier and Type | Method and Description |
|---|---|
static NpmPublishOptions.Builder |
builder() |
default CodeArtifactOptions |
getCodeArtifactOptions()
(experimental) Options for publishing npm package to AWS CodeArtifact.
|
default String |
getDistTag()
Deprecated.
Use `npmDistTag` for each release branch instead.
|
default String |
getNpmTokenSecret()
(experimental) GitHub secret which contains the NPM token to use when publishing packages.
|
default String |
getRegistry()
(experimental) The domain name of the npm package registry.
|
@Stability(value=Experimental) @Nullable default CodeArtifactOptions getCodeArtifactOptions()
Default: - undefined
@Stability(value=Deprecated) @Deprecated @Nullable default String getDistTag()
For example, a project might choose to have multiple streams of development and use a different tag for each stream, e.g., stable, beta, dev, canary.
By default, the latest tag is used by npm to identify the current version
of a package, and npm install <pkg> (without any @<version> or @<tag>
specifier) installs the latest tag. Typically, projects only use the
latest tag for stable release versions, and use other tags for unstable
versions such as prereleases.
The next tag is used by some projects to identify the upcoming version.
Default: "latest"
@Stability(value=Experimental) @Nullable default String getNpmTokenSecret()
Default: - "NPM_TOKEN" or "GITHUB_TOKEN" if `registry` is set to `npm.pkg.github.com`.
@Stability(value=Experimental) @Nullable default String getRegistry()
To publish to GitHub Packages, set this value to "npm.pkg.github.com". In
this if npmTokenSecret is not specified, it will default to
GITHUB_TOKEN which means that you will be able to publish to the
repository's package store. In this case, make sure repositoryUrl is
correctly defined.
Default: "registry.npmjs.org"
Example:
// Example automatically generated from non-compiling source. May contain errors. "npm.pkg.github.com"
@Stability(value=Experimental) static NpmPublishOptions.Builder builder()
NpmPublishOptions.Builder of NpmPublishOptionsCopyright © 2021. All rights reserved.