If the automated version bump workflow fails (e.g., due to branch deletion or workflow issues), follow these steps to manually bump the version and create a release.
-
Update VERSION File:
- Edit
VERSIONto the new version (e.g.,1.0.2+1).
- Edit
-
Update pubspec.yaml:
- Run
./scripts/pubspec.shto sync the version.
- Run
-
Commit Changes:
git add VERSION pubspec.yamlgit commit -m "chore: bump version to X.Y.Z"(where X.Y.Z is the version part, e.g., 1.0.2, excluding the +build number)
-
Create Branch and PR:
git checkout -b version-bump-X.Y.Z(use X.Y.Z without +build)git push origin version-bump-X.Y.Z- Create a PR on GitHub with title "chore: bump version to X.Y.Z".
-
Merge PR:
- Merge the PR to main.
-
Create Tag and Release:
git tag desktop/app-X.Y.Z(use X.Y.Z without +build)git push origin desktop/app-X.Y.Z- On GitHub, go to Releases > Create new release with tag
desktop/app-X.Y.Z, title "Release X.Y.Z", and notes summarizing the changes.
- The automated workflow should handle this, but use this as a fallback.
- Ensure the tag prefix
desktop/appmatches the script configuration.