Add relesing guide

pull/135/head
Maciej Winnicki 2018-07-25 09:46:08 +02:00
parent c2f98d5554
commit c8b02c6246
No known key found for this signature in database
GPG Key ID: 035AA4FA2183ADFA
1 changed files with 45 additions and 0 deletions

45
RELEASING.md Normal file
View File

@ -0,0 +1,45 @@
# Releasing Frontail
After all [pull requests](https://github.com/mthenw/frontail/pulls) for a release have been merged and all [Travis CI builds](https://travis-ci.org/mthenw/frontail) are green, you may create a release as follows:
1. If you haven't already, switch to the master branch, ensure that you have no changes, and pull from origin.
```sh
$ git checkout master
$ git status
$ git pull <remote> master --rebase
```
1. Edit the `package.json` file changing `version` field to your new release version and run `npm i`.
1. Commit your changes.
```sh
$ git commit -am "Release <version>"
```
1. Tag the version.
```sh
$ git tag v<version>
```
1. Push the commit and tag.
```sh
$ git push origin head --tags
```
1. Travis CI will publish new version to NPM.
1. Publish new release on GitHub with [`release`](https://github.com/zeit/release) package.
```sh
$ npx release -P
```
1. Upload binaries
```sh
$ npm run pkg
```