npmToken top-level property

ConfigVariable<String> npmToken
final

The npm authentication token to use when creating releases and making other changes.

Do not check this in directly. This should only come from secure sources.

By default this comes from the NPM_TOKEN environment variable.

Implementation

final npmToken = InternalConfigVariable.fn<String>(() =>
    Platform.environment["NPM_TOKEN"] ??
    fail("pkg.npmToken must be set to deploy to npm."));