Manage version numbers and releases for a web game. Semantic versioning adapted to games (major = big update or save break, minor = new content or features, patch = fixes), one source of truth bumped everywhere at once (package.json, config, index.html), pre-releases (beta), git tags, showing the version in-game, build IDs for itch.io channels, matching versions to changelog entries and save ve...
Download skill (.zip) Files on GitHubGame version management
Versions
| Bump | When | Example |
|---|---|---|
| major 2.0.0 | Big update, new mode, or a change that breaks saves or controls | 1.4.2 → 2.0.0 |
| minor 1.5.0 | New levels, features, content | 1.4.2 → 1.5.0 |
| patch 1.4.3 | Fixes, balance tweaks, performance | 1.4.2 → 1.4.3 |
| pre-release | Testing builds | 1.5.0-beta.1, -beta.2 |
Start at 0.1.0 while prototyping; 1.0.0 = first public release.
Bump everywhere at once
python3 <skill>/scripts/bump-version.py . patch # 1.4.2 → 1.4.3 in every file that has it
python3 <skill>/scripts/bump-version.py . minor --dry-run # show what would change
python3 <skill>/scripts/bump-version.py . minor --pre beta # 1.5.0-beta.1, then -beta.2 …
python3 <skill>/scripts/bump-version.py . 2.0.0 --tag # exact version, then tag (after committing)
It finds package.json “version”, VERSION = "…" / version: "…" in src/version.js, src/config.js or main.js, and
<meta name="version">, and sets them all to the same value (it warns if they had drifted apart).
Release steps
bump-version.py . minor- Update
CHANGELOG.md(game-changelog): move Unreleased to the new version. - Commit:
git commit -am "Release v1.5.0", thengit tag -a v1.5.0 -m "v1.5.0"andgit push && git push origin v1.5.0. - Publish (bash-itch-export / bash-github-actions-itch). butler:
butler push www yourname/game:html5 --userversion 1.5.0so itch.io shows the same version. - Run game-release-validation before publishing, not after.
Show it in the game
Small text on the title or settings screen: v1.5.0. Bug reports then say which build. Optionally add the commit:
v1.5.0 (a1b2c3d) from the CI build.
Versions that are separate on purpose
- Save version (game-save-migration) changes only when the save format changes, not with every release.
- Content / data versions (level packs) only if they ship separately.
Rollback
Re-deploy the previous tag: git checkout v1.4.2 -- www && commit, or butler push the old build folder. Then fix forward with a patch.
Never move or delete published tags.