25 lines
1020 B
Markdown
25 lines
1020 B
Markdown
# semantic-release
|
|
[](https://travis-ci.org/boennemann/semantic-release)
|
|
[](https://david-dm.org/boennemann/semantic-release)
|
|
[](https://david-dm.org/boennemann/semantic-release#info=devDependencies)
|
|
|
|
[](https://nodei.co/npm/semantic-release/)
|
|
|
|
```bash
|
|
npm i semantic-release
|
|
```
|
|
You *need* to set it up inside your `package.json`:
|
|
|
|
```json
|
|
"scripts": {
|
|
"prepublish": "semantic-release pre",
|
|
"postpublish": "semantic-release post"
|
|
}
|
|
```
|
|
|
|
Note: `semantic-release` works around a limitation in npm's "prepublish" hook. Once a version is published it prints an error that you can *safely ignore*.
|
|
See [npm/npm#7118](https://github.com/npm/npm/issues/7118).
|
|
|
|
MIT License
|
|
2015 Stephan Bönnemann
|