Détail du package

npm-github-config

lgaticaq53MITobsolète2.0.1

WARNING: This project has been renamed to @eclass/semantic-release-npm-github-config. Install using @eclass/semantic-release-npm-github-config instead.

Semantic-release shareable config for NPM with Github

github, npm, changelog, release

readme

npm-github-config

npm version npm downloads Build Status Maintainability devDependency Status

Semantic-release shareable config for NPM with GitHub.

Usage

Local installation

npm i -D semantic-release npm-github-config @semantic-release/{changelog,git}

In package.json:

{
  "release": {
    "extends": "npm-github-config"  
  }
}

Global installation

$ npm i -g semantic-release npm-github-config @semantic-release/{changelog,git}
$ semantic-release -e npm-github-config

Configuration

GitHub authentication

The GitHub authentication configuration is required and can be set via environment variables.

See GitHub authentication.

Npm registry authentication

The npm authentication configuration is required and can be set via environment variables.

See Npm registry authentication

Environment variables

Variable Description
GH_TOKEN or GITHUB_TOKEN Required. The token used to authenticate with GitLab repository.
NPM_TOKEN Required. Npm token created via npm token create

Additional options

This shareable config uses the @semantic-release/changelog, @semantic-release/git, @semantic-release/github and @semantic-release/npm plugins. See the documentation of each plugins for additional options. Options can be set in the Semantic-release configuration.

For example to set a custom GitHub URL:

{
  "release": {
    "extends": "npm-github-config",
    "githubUrl": "https://custom.github.com"
  }
}

License

MIT

changelog

2.0.1 (2019-10-16)

Bug Fixes

  • deps: remove @semantic-release/npm from peerDependencies (4ffcfd5)

2.0.0 (2018-09-21)

chore

  • deps: move dependencies to peerDependencies (b43a030)

BREAKING CHANGES

  • deps: move dependencies to peerDependencies

1.0.0 (2018-09-18)

Features