Recommended workflow
- Make changes
- Commit those changes
- Make sure Travis turns green
- Bump version in package.json
- Generate conventionalChangelog (
$ npm run changelog
) - Commit package.json and package-lock.md and CHANGELOG.md files
- Tag
- Push
The reason why you should commit and tag after conventionalChangelog is that the CHANGELOG should be included in the new release, hence gitRawCommitsOpts.from defaults to the latest semver tag.
Important: The npm run changelog command needs to be executed only from master branch.
More details at: https://www.npmjs.com/package/conventional-changelog-cli .