2017-04-29 20:39:08 +02:00
# Release
2016-01-26 06:30:23 +01:00
2017-04-29 20:39:08 +02: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 06:30:23 +01:00
2017-04-29 20:39:08 +02:00
## Dependencies
- [Git Extras ](https://github.com/tj/git-extras/blob/master/Installation.md )
2017-05-21 14:42:36 +02:00
- [jq ](https://stedolan.github.io/jq/download/ )
2016-01-26 06:30:23 +01:00
2017-04-29 20:39:08 +02:00
## How to Release `$VERSION`
2016-01-26 06:30:23 +01:00
2017-04-29 20:39:08 +02:00
While on `master` , with no uncommitted changes,
```bash
npm run changelog -- $VERSION
2017-04-20 04:03:40 +02:00
```
2016-01-26 06:30:23 +01:00
2017-04-29 20:39:08 +02: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 06:30:23 +01:00
2017-04-29 20:39:08 +02:00
Now we may want to cleanup the changelog:
2016-01-26 06:30:23 +01:00
2017-04-29 20:39:08 +02:00
```bash
2017-04-20 04:03:40 +02:00
vim docs/changelog.md
2017-04-29 20:39:08 +02:00
git commit --amend
```
Once we are satisfied,
```bash
git push origin master
2017-04-20 04:03:40 +02:00
```
2016-01-26 06:30:23 +01:00
2017-04-20 04:03:40 +02: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 05:43:44 +01:00