Skip to content

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