Bumping the version before the tag
This page is for whoever cuts a release. The rule is short: raise the version in a commit, then tag that commit. Never tag first and bump afterwards: the tag would carry the old number, and a pushed tag cannot be moved.
Step by step
Choose the number (Choosing a version number). Example:
1.0.25.Write it, without
v, into:ezinfo.php:'Version' => "1.0.25";extension.xml:<version>1.0.25</version>;composer.json:"version": "1.0.25", only if the file has the field;- the header of
share/filelist.md5, only if the theme ships one (File checksums).
Add the release to
CHANGELOG.md(Keeping a CHANGELOG.md).Check:
php -l ezinfo.php xmllint --noout extension.xml grep -n "'Version'" ezinfo.php; grep -n '<version>' extension.xml git status --shortExpected: no syntax errors, no
xmllintoutput, the same number twice, and only the files you meant to change.Commit:
git commit -am "Updated: Version 1.0.25"(or make it part of the release's last commit).Tag that commit (Annotated tags):
git tag -a v1.0.25 -m "v1.0.25: <what this release is about>"Push the branch and the tag:
git push origin main v1.0.25.Create the release (GitHub releases).
Verify before you push, not after
Before step 7 confirm: the working tree is clean, the theme renders on a test installation, and any built file (compiled CSS) matches its sources. A minute of checking costs less than a version number burned forever.
Related pages
- Keeping every version field in sync
- A pushed tag is permanent
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.