scratch-semantic-release-co.../README.md

42 lines
1.9 KiB
Markdown
Raw Normal View History

2019-06-11 15:01:53 -04:00
# @jedmao/semantic-release-npm-github-config
[**semantic-release**](https://github.com/semantic-release/semantic-release) shareable config to publish npm packages with [GitHub](https://github.com).
2019-06-26 13:06:30 -04:00
[![Travis](https://img.shields.io/travis/com/jedmao/semantic-release-npm-github-config.svg?style=popout-square&logo=travis)](https://travis-ci.com/jedmao/semantic-release-npm-github-config)
[![npm version](https://img.shields.io/npm/v/@jedmao/semantic-release-npm-github-config/latest.svg?style=popout-square&logo=npm)](https://www.npmjs.com/package/@jedmao/semantic-release-npm-github-config)
2019-06-11 15:01:53 -04:00
## Plugins
This shareable configuration use the following plugins:
- [`@semantic-release/commit-analyzer`](https://github.com/semantic-release/commit-analyzer)
- [`@semantic-release/release-notes-generator`](https://github.com/semantic-release/release-notes-generator)
- [`@semantic-release/npm`](https://github.com/semantic-release/npm)
- [`@semantic-release/github`](https://github.com/semantic-release/github)
- [`@semantic-release/git`](https://github.com/semantic-release/git)
## Install
```bash
2019-06-26 11:46:59 -04:00
$ npm install --save-dev semantic-release @jedmao/semantic-release-npm-github-config
2019-06-11 15:01:53 -04:00
```
## Usage
The shareable config can be configured in the [**semantic-release** configuration file](https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#configuration):
```json
{
"extends": "@jedmao/semantic-release-npm-github-config",
"branch": "master"
}
```
## Configuration
2019-06-26 13:06:30 -04:00
Ensure that your CI configuration has the following **_secret_** environment variables set:
- [`GH_TOKEN`](https://github.com/settings/tokens) with [`public_repo`](https://developer.github.com/apps/building-oauth-apps/understanding-scopes-for-oauth-apps/#available-scopes) access.
- [`NPM_TOKEN`](https://docs.npmjs.com/cli/token)
2019-06-11 15:01:53 -04:00
See each [plugin](#plugins) documentation for required installation and configuration steps.