Nativefier/docs/release.md

37 lines
882 B
Markdown
Raw Normal View History

# Release
2016-01-26 06:30:23 +01: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
## 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
## How to Release `$VERSION`
2016-01-26 06:30:23 +01:00
While on `master`, with no uncommitted changes,
```bash
npm run changelog -- $VERSION
```
2016-01-26 06:30:23 +01: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
Now we may want to cleanup the changelog:
2016-01-26 06:30:23 +01:00
```bash
vim docs/changelog.md
git commit --amend
```
Once we are satisfied,
```bash
git push origin master
```
2016-01-26 06:30:23 +01:00
On [GitHub Releases](https://github.com/jiahaog/nativefier/releases), draft and publish a new release with title `Nativefier vX.X.X`.