JSPM

  • Created
  • Published
  • Downloads 1940793
  • Score
    100M100P100Q194887F
  • License MIT

Set of semantic-release plugins to publish to a npm registry

Package Exports

  • @semantic-release/npm
  • @semantic-release/npm/lib/publish
  • @semantic-release/npm/lib/set-npmrc-auth

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@semantic-release/npm) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@semantic-release/npm

Set of semantic-release plugins for publishing to a npm registry.

Travis Codecov Greenkeeper badge

verifyConditions

Verify the presence of the NPM_TOKEN environment variable, create or update the .npmrc file with the token and verify the token is valid.

getLastRelease

Determine the last release of the package on the npm registry.

publish

Publish the package on the npm registry.

Configuration

For each plugin, the npm authentication token has to be configured with the environment variable NPM_TOKEN.

All the plugins are based on npm and will use the configuration from .npmrc. Any parameter returned by npm config list will be used by each plugin.

The registry and dist-tag can be configured in the package.json and will take precedence on the configuration in .npmrc:

{
  "publishConfig": {
    "registry": "https://registry.npmjs.org/",
    "tag": "latest"
  }
}

The plugins are used by default by semantic-release so no specific configuration is requiered to use them.

Each individual plugin can be disabled, replaced or used with other plugins in the package.json:

{
  "release": {
    "verifyConditions": ["@semantic-release/npm", "verify-other-condition"],
    "getLastRelease": "custom-get-last-release",
    "publish": ["@semantic-release/npm", "custom-publish"]
  }
}