conventional-changelog Artear preset
Installation
-
Install package
yarn add --dev git@github.com/Artear/conventional-changelog-artear.git
ornpm install --save-dev git@github.com/Artear/conventional-changelog-artear.git
-
Configure Jira options in
package.json
// ...
"jira": {
"url": "https://artear.atlassian.net/",
"projectId": "TNRE"
}
- Add scripts to auto generate changelog and push tags during version publish
"scripts": {
// ...
"version": "conventional-changelog -p artear -i CHANGELOG.md -s && git add CHANGELOG.md",
"postversion": "git push --follow-tags"
}
Flow
- Make changes
- Commit those changes
- Make sure build turns green
- In master, bump version in package.json (done automatically using
npm|yarn version
) - Update changelog (done using
version
script in package.json) - Commit package.json and CHANGELOG.md files (done using
version
script in package.json) - Tag (done automatically using
npm|yarn version
) - Push (done using
postversion
script)
Generate default changelog from existing history
Run ./node_modules/.bin/conventional-changelog -p artear -i CHANGELOG.md -s -r 0
Github releaser
- Install package
(
https://github.com/conventional-changelog/conventional-github-releaser
) - Setup Github token
(
https://github.com/conventional-changelog/conventional-github-releaser#setup-token-for-cli
) - Optionally, add the release step during after the version phase
"postversion": "git push --follow-tags && conventional-github-releaser -p angular"