A pushed tag is permanent
This page is for every designer who publishes releases. Read it before your first tag.
Why
When you push a tag of a public Composer package:
- Packagist reads it once and caches the version it found. Anything that resolved that version keeps the contents it saw.
- Users install it, mirror it, put it into lock files and deploy it.
Git will let you delete or move a tag, but that does not reach those copies. A "fixed" tag produces two different packages wearing the same version number: worse than the original mistake, and impossible to diagnose from outside.
The rules
- Never delete, move, re-point or re-cut a pushed tag. Not for a typo in the message, not for a forgotten file, not for a stale archive.
- Never replace or edit the assets of a published GitHub release. A corrected asset under the same version is the same problem as a moved tag.
- Check what is already published before choosing a number (Checking what is already published).
- Verify before you push. Clean working tree, the theme renders, version fields agree, built files match their sources.
- If a bad version is published, leave it and publish the next version with the fix, saying plainly in its notes what was wrong (When a release goes wrong).
A checklist before git push origin v<version>
- To do:
git status --shortprints nothing. - To do:
git log --oneline -1is the release commit. - To do: The version fields show the new number (Keeping every version field in sync).
- To do: The number is higher than every published tag and release.
- To do: The theme was installed and viewed on a test installation from this commit.
- To do: The tag message is right (
git show v<version> | head -5).
What may still be changed
The text of a GitHub release (its notes) can be corrected when it is wrong, as long as the tag and the assets stay. Say in the notes that they were corrected.
Related pages
- Annotated tags
- Release and upgrade planning
- 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.