Composer gets versions from git tags through Packagist. There's no version field in composer.json, so don't add one.
-
Make sure
masteris up to date and clean:git checkout master && git pull -
Choose the next semver number. Tags have no
vprefix (e.g.4.4.0, notv4.4.0). -
Create the GitHub release. This also creates and pushes the tag:
gh release create 4.4.1 --target master --generate-notes
-
Packagist should pick up the tag automatically via the GitHub webhook. If the new version doesn't appear on Packagist after a few minutes, click Update there.