Skip to content

Drop-in-repl npm plugin to handle `npm-whoami` throttling issue for monorepos: https://github.com/semantic-release/npm/issues/414

License

Notifications You must be signed in to change notification settings

semrel-extra/npm

Repository files navigation

@semrel-extra/npm

Drop-in-repl for standard npm plugin to handle npm-whoami throttling issue for monorepos: semantic-release/npm/issues/414

CI Maintainability Test Coverage

Install

npm i -D @semrel-extra/npm

Usage

@semrel-extra/npm is just a wrapper, so it inherits the API contract of @semantic-release/npm. Follow its docs:

Step Description
verifyConditions Verify the presence of the NPM_TOKEN environment variable, or an .npmrc file, and verify the authentication method is valid.
prepare Update the package.json version and create the npm package tarball.
addChannel Add a release to a dist-tag.
publish Publish the npm package to the registry.
{
  "plugins": [
    "@semantic-release/commit-analyzer",
    ["@semrel-extra/npm", {
      ...
    }],
    ["@semantic-release/git", {
      "assets": ["package.json", "npm-shrinkwrap.json"]
    }]
  ]
}

License

MIT