2017-04-29 18:39:08 +00:00
# Release
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
Releases are automatically deployed to NPM on Travis, when they are tagged. However, we have to make sure that the version in the `package.json` , and the changelog is updated.
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
## Dependencies
- [Git Extras ](https://github.com/tj/git-extras/blob/master/Installation.md )
2017-05-21 12:42:36 +00:00
- [jq ](https://stedolan.github.io/jq/download/ )
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
## How to Release `$VERSION`
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
While on `master` , with no uncommitted changes,
```bash
npm run changelog -- $VERSION
2017-04-20 02:03:40 +00:00
```
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
This command does 3 things:
1. Update the version in the `package.json`
2. Update the changelog
3. Creates a new commit with the changes
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
Now we may want to cleanup the changelog:
2016-01-26 05:30:23 +00:00
2017-04-29 18:39:08 +00:00
```bash
2017-04-20 02:03:40 +00:00
vim docs/changelog.md
2017-04-29 18:39:08 +00:00
git commit --amend
```
Once we are satisfied,
```bash
git push origin master
2017-04-20 02:03:40 +00:00
```
2016-01-26 05:30:23 +00:00
2017-04-20 02:03:40 +00:00
On [GitHub Releases ](https://github.com/jiahaog/nativefier/releases ), draft and publish a new release with title `Nativefier vX.X.X` .
2016-03-14 04:43:44 +00:00