rzamana / standard-version
Library that helps with generating CHANGELOG.md and versioning
dev-master / 0.1.x-dev
2018-05-06 00:30 UTC
Requires
- php: ^7.0
- symfony/console: *
Requires (Dev)
This package is not auto-updated.
Last update: 2024-05-07 14:33:09 UTC
README
This is a PHP composer library fork based on the npm standard-version!
Automatic versioning and CHANGELOG generation, using GitHub's squash button and conventional commit messages.
how it works:
- when you land commits on your
master
branch, select the Squash and Merge option. - add a title and body that follows the Conventional Commits Specification.
- when you're ready to release:
git checkout master; git pull origin master
- run
standard-version
git push --follow-tags origin master && npm publish
standard-version
does the following:
- bumps the version in composer.json (based on your commit history)
- update CHANGELOG.md
- commits composer.json (et al.) and CHANGELOG.md
- tags a new release
Installation
Under construction
Commit Message Convention, at a Glance
patches:
git commit -a -m "fix(parsing): fixed a bug in our parser"
features:
git commit -a -m "feat(parser): we now have a parser \o/"
breaking changes:
git commit -a -m "feat(new-parser): introduces a new parsing library BREAKING CHANGE: new library does not support foo-construct"
other changes:
You decide, e.g., docs, chore, etc.
git commit -a -m "docs: fixed up the docs a bit"
but wait, there's more!
Github usernames (@bcoe
) and issue references (#133) will be swapped out for the
appropriate URLs in your CHANGELOG.
FAQ
Under Construction
License
ISC