Skip to content

semrel-extra/npm

Folders and files

NameName
Last commit message
Last commit date
Mar 16, 2023
Apr 18, 2022
Nov 18, 2021
Nov 18, 2021
Apr 18, 2022
Nov 18, 2021
Nov 18, 2021
May 8, 2022
May 8, 2022
Nov 21, 2021

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