2018-06-05 22:37:52 +03:00
|
|
|
# Release script
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2018-08-08 18:49:22 +03:00
|
|
|
```sh
|
|
|
|
# set environment variable GITHUB_API_TOKEN if it's a patch release
|
|
|
|
# since we need to get merged PRs from GitHub to generate changelog
|
|
|
|
node ./scripts/release/release.js --version NEW_VERSION
|
2018-06-05 22:37:52 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
The script its own `package.json` so we can reinstall the root's `node_modules/` while making the release.
|
|
|
|
|
|
|
|
## Credits
|
|
|
|
|
|
|
|
This script was inspired by [React's release script](https://github.com/facebook/react/tree/001f9ef/scripts/release).
|