Release a new version
Purpose
- Tag a new version
x.y.z, then review and publish the GitHub release draft that CI fills with the files it builds for every platform. - Once the release is published, installed apps can find the update (when updater signing is configured).
- Publishing also generates the winget and Homebrew tap files.
- The decision "The version lives only in package.json, and a version tag creates a draft release" explains why the flow works this way.
Audience and assumptions
- A maintainer does this.
- You need repository administrator access for the generated release commit.
- You need a clean local working tree on main.
- Ordinary code changes still use reviewed squash pull requests.
- Signing and the distribution channels turn on only when the repository secrets exist.
- The release still works without them.
- The signing keys and secrets standard lists the secrets.
Prerequisites
securityandcodeqlpassed for the latest commit on main.buildpassed on every desktop platform for the pull request behind that commit.- main builds only when the crates or the workflow change (automated checks).
- For a run on main itself, use
gh workflow run build.yml --ref main.
CHANGELOG.mdlists this version's changes under## [Unreleased]. If it is empty, the release command stops.- You chose the version number: bump the second number for new features, the third when there are only fixes.
git statusis empty locally.- The release pages for this version are written in all four site languages:
website/releases/<version>.md(English),website/ko/releases/<version>.md,website/ja/releases/<version>.mdandwebsite/zh-hans/releases/<version>.md.- Each has the opening sentence and the changes a visitor reads first, written by hand. See Edit and check the website.
- They follow the release notes rules; the command stops on a page that breaks them.
- The one-time repository setup is done (Set up the repository, keys and store accounts): Pages from GitHub Actions, private vulnerability reporting, the updater signing secrets, and for the stores the Homebrew tap and the winget-pkgs fork.
Development versions and publication
Versions:
- Starting with
1.0.0, the app and the Store share the same three version components. - MSIX adds a final
.0(for example1.0.0.0). - Publishing the GitHub release also starts the
storeworkflow. - That workflow builds both Store packages and, once submission is switched on, submits them to Partner Center (step 9). See Store setup and submission.
- Versions change for a release, not automatically for each commit.
package.jsonis the source of truth.- The Rust package version matches it;
pnpm-lock.yamldoes not record the app's version. - New features bump the minor version; fixes bump the patch version.
- Pet and background format versions are separate compatibility contracts and do not advance with the app version.
Preparing the next version on a development branch:
- Keep its notes under
Unreleased. - Leave its four release pages undated.
- Keep the published Linux metainfo entries.
- A prepared entry uses
type="development"until the release command dates and promotes it. - Keep the published version's captures.
- Put current captures under the next version's directory.
- A prepared version is not a public release: the site's default download still resolves the latest published GitHub release.
- Once the branch is reviewed and merged into main,
pnpm run release x.y.zfinalizes the notes and dates, commits, and creates the local tag. - The command does not push.
- Push the tag only once cross-platform checks and publication are approved.
Update checks:
| When | What happens |
|---|---|
| Unpackaged installations | Silent check 20 seconds after startup, then every 6 hours |
| A check fails | Silent retry after 5 minutes, 15 minutes, 1 hour, then every 6 hours; success resets the schedule |
| Store-managed packages | Their package manager updates them instead |
- A background check shows a quiet version entry without opening Settings or starting an installation.
- Settings → App updates holds the result, release notes, download progress, Cancel, errors and Retry.
- Only Install and restart starts the signed download and installation.
- Closing Settings leaves that operation running.
- Reopening Settings does not start a second download.
Updater archives:
- The updater disables legacy ZIP compatibility on purpose.
- Keep this setting when you update the plugin.
- The release feed points to native Windows EXE, Linux deb and AppImage files.
- macOS tar support does not depend on the ZIP feature.
- A new archive format needs a dependency security review and installation checks before it is added.
First public release hand-off
Do these in order. A local build that succeeds does not prove that a published update downloads and installs.
- Merge reviewed local branches into
main, then runpnpm run checkandpnpm run test:e2eon the resulting commit. - Before the first push of
main, scan the reachable history withgitleaks git --redact --log-opts=main.- Check tracked files as well as ignore rules.
- Private data and build output do not belong in Git.
- Run
pnpm audit,cargo audit --file src-tauri/Cargo.lockandactionlintwith current advisory data.- Review informational warnings too.
- Record unresolved advisories, affected platforms and any reachability assessment in the release review.
- A passing unit test does not prove that a dependency is safe.
- For the Linux GLib warning, use the upstream references and handling policy in Dependency advisories.
- Check the active dependency graph even when an upstream project has added an audit exception or started a newer GTK development branch.
- Review third-party license notices for the dependencies bundled in each platform package and in the built website.
- Ship the required license and copyright texts with those distributions.
- The repository's MIT license does not replace dependency notices.
- Run
pnpm run licenses:check. Third-party notices covers regeneration and distribution scope. - The Rust inventory does not cover system libraries copied into an AppImage.
- Before publication, review the final image and the libraries' source and relinking obligations.
- Confirm that both Linux
SYSTEM-SOURCE-PACKAGES.txtassets are present.- Release CI builds an initial image from the executable's native library graph, extracts the system libraries it actually uses, then rebuilds the final image with their distribution copyright files.
- It compares every copied library with those files and records the exact Ubuntu binary and source package versions used to build it.
- Rebuild distribution files after dependency changes.
- Older files in the ignored
release/folder are not evidence for the current commit, and they are not publication inputs.
- Older files in the ignored
- Connect the GitHub remote and push
main.- Enable Pages from GitHub Actions and configure updater signing as described in repository setup.
- Before publishing the release draft, check the platform CI results, the four-language site routes, the release links and the installation instructions.
- Read the native package smoke-test result for every release job.
- It copies the app from the dmg, silently installs and uninstalls the NSIS package, and installs the deb.
- It launches those packages and the AppImage for eight seconds with isolated app data.
- This catches package hand-off failures.
- It does not replace the interactive installer and Gatekeeper/SmartScreen review on real user machines.
- Refresh public captures when a visible change affects them.
- The full yard, small window, places, Friend, Invite and Settings have to match the shipped app.
- Test a signed upgrade from an older installed build to a newer published build on each supported installer format.
- Check download progress, Cancel, a failed attempt and retry, restart, the one-time version notice, and that friends and settings are kept.
- A mocked updater event proves UI behavior, not the installer hand-off.
- Treat Homebrew, winget and optional platform signing as separate distribution steps.
- Record in the release notes which channels are actually available.
Published releases stay fixed
- Complete and verify every asset while the release is a draft.
- Release immutability protects assets published from now on and their tags.
- The repository's tag rules also block moving or deleting pushed
v*.*.*tags. - Before a push, you can delete a mistaken local tag and make it again.
- After a push, keep the tag and use a new version.
- A fix to a published installer ships as a patch release, never as a replaced file at an existing download address.
- Release notes can clarify known limits.
Steps
- Pull the latest main.
bash
git switch main && git pull- Capture the screens for the site (macOS), then redraw the installer art.
- The first time, macOS asks for screen recording permission; allow it.
- The command writes the results to
website/public/shots/0.2.0/, in every app language. - Look them over, then set
CAPTURE_VERSIONinscripts/site-content.mjsto the new version, so the site and the installer art use them. pnpm run artredraws the installer art. It also turns those English captures into the screenshots Linux software centers show.- Commit all of it.
bash
pnpm run shots 0.2.0
pnpm run art- Make the release commit and tag.
bash
pnpm run release 0.2.0| What the command changes | Where |
|---|---|
| The changelog section moves to a dated section | CHANGELOG.md |
| The version | package.json, src-tauri/Cargo.toml and src-tauri/Cargo.lock |
| The version is added, dated, with the English page's Linux lines | packaging/linux/app.playpets.metainfo.xml |
| Today's date on the website release pages | website/releases/0.2.0.md, website/ko/releases/0.2.0.md, website/ja/releases/0.2.0.md and website/zh-hans/releases/0.2.0.md |
- If a page is missing or breaks a release notes rule, it stops before changing anything and lists what to fix.
- Everything goes into one release commit.
- Nothing is pushed.
- Push the commit and the tag. The tag starts the
releaseworkflow.
bash
git push --atomic origin HEAD v0.2.0- The atomic push either updates both main and the version tag or updates neither.
- Do not push the tag separately after a rejected main update: that could start a release from a commit absent from main.
Open the
releaserun in the repository's Actions tab.- Watch
check(tag, version and changelog agree),buildon five platforms, andpublishfinish in order.
- Watch
Open the
PlayPets 0.2.0draft in the Releases tab. Check the file list and the notes.
| File | Present when |
|---|---|
PlayPets_0.2.0_macos-universal.dmg | Always |
PlayPets_0.2.0_windows-x64-setup.exe, …-arm64-setup.exe | Always |
PlayPets_0.2.0_linux-x64.deb, ….AppImage, two arm64 files | Always |
Two Linux …-SYSTEM-SOURCE-PACKAGES.txt files | Always |
SHA256SUMS.txt | Always |
latest.json, PlayPets_0.2.0_macos-universal.app.tar.gz | The updater signing secrets exist |
After the checks pass, press "Publish release" on the draft. Publishing starts the
distributeandstoreworkflows.distributestarts the Pages build onmain. Whenmainhas moved past the release commit, that build reads the published release, and the download buttons and the four version pages link its files.- When
mainis still the release commit, Pages keeps the files it first deployed for that commit, built while the release was a draft. Those pages know their own version isn't among the releases they were built with, so the visitor's browser looks up that version and the latest instead (1.6.0 shipped with the old links before this). - Publication therefore needs no follow-up documentation commit.
- If the build could not reach GitHub, the pages look the release up in the visitor's browser and keep a safe link to the release list.
When the
distributerun finishes, check the results. A channel without a token is left in thestore-manifestsartifact.
| Channel | With its token | Without it |
|---|---|---|
| winget | If WINGET_TOKEN exists, wingetcreate opens the PR on winget-pkgs, for the first version too. winget's moderators review a new package by hand; their bots merge later versions once checks pass. While the first version's PR is still open, no other PR is opened and the run leaves a notice; after it is merged, run distribute by hand for the latest tag | Submit the artifact's winget/manifests/… folder yourself (below) |
| Homebrew | If HOMEBREW_TAP_TOKEN exists, the run updates Casks/playpets.rb in <account>/homebrew-tap | Copy the artifact's homebrew/Casks/playpets.rb into the tap repository and commit it |
Submitting to winget by hand:
powershell
wingetcreate token --storepowershell
wingetcreate submit <folder where you unpacked the artifact>\winget\manifests\g\gaerae\PlayPets\0.2.0token --storesigns in to GitHub in the browser once and keeps the token in Windows Credential Manager, so it never appears on the command line.
- Check the
storerun (Microsoft Store). It skips prereleases.sourcechecks the tag and makes "What's new" from the four website release pages.packagebuilds the x64 and ARM64 MSIX from the tag and runs the Windows App Certification Kit (WACK) on the x64 one; its report is thewack-x64artifact.bundlemakes one.msixupload(both packages as a bundle, with their public symbols), checks it and keeps it as thestore-bundleartifact.submitruns only when the repository variableSTORE_SUBMISSION_ENABLEDistrue.submitwaits for approval of themicrosoft-storeenvironment, then creates the submission and requests certification.- With
STORE_PUBLISH_MODE=Immediate, the Store publishes once certification passes. - Otherwise press Publish now in Partner Center after certification passes.
- Without submission, upload the
.msixuploadfile fromstore-bundlein Partner Center and paste each language's text from itsnotes.json. - Partner Center marks the older package for removal after the upload; press Save on the Packages page, or the submission stays incomplete.
Verification
- The release page has the files from step 6.
- The notes match the
## [0.2.0]section ofCHANGELOG.md. - In an app with the previous version installed (when the updater signing secrets exist):
- Confirm that an automatic check shows a quiet version entry without opening Settings or starting the installation.
- Run a manual check: it opens Settings → App updates. Verify its result, release notes, progress, errors and Retry in that section.
- Close Settings during the download and reopen it. Check that no second download starts.
- Complete the installation and restart. Confirm the running version and the brief completion notice.
- Restart again and check that the notice does not repeat.
- Partner Center shows the new submission with the bundle (x64 and ARM64) and What's new in four languages.
- Certification starts on its own.
- The winget PR passes its checks, or
brew upgrade --cask playpetson a computer with the tap gets the new version. - With signing secrets,
latest.jsonlists every platform in the release, includinglinux-x86_64-debandlinux-aarch64-debentries for deb installs. - If those entries are missing, deb users do not get updates in the app.
Troubleshooting
| Symptom | Fix |
|---|---|
check fails with "package.json is not x.y.z" | The tag and the version differ. If the tag is only local, delete it with git tag -d vx.y.z and make it again. Keep a tag that is already pushed, and prepare a corrected new version |
check fails with "no section for x.y.z" | The tag was made without finalized notes. Keep a pushed tag, and finalize the next version with the release command |
Only one platform's build fails | Read that runner's log and fix it, then run release by hand from Actions with the same tag (workflow_dispatch, tag input). It replaces the draft's files; a published release stops it |
The draft has no latest.json | The updater signing secrets are missing. Installed apps cannot find this release. Add the secrets, delete the draft, and run release by hand with the same tag |
gh release create fails with "already exists" | A draft for the same tag already exists. Delete that draft and run release by hand |
store stops with "already has this version" | The Store has this version or a later one. Nothing changed |
store stops with "pending submission" | A submission is still in certification or a draft is open in Partner Center. Store API verification shows its state and error codes. Finish or delete it, then run store by hand from the tag (Use workflow from → Tags → vx.y.z) |
store stops after creating a submission | The log gives the Store's reason and says whether the draft was removed. If it is still there, delete it in Partner Center. Fix the cause on main, then run store-retry from main with the tag and the store run's ID |
store stops after the commit | Open the submission in Partner Center and fix it there. Do not run store or store-retry while it is pending |
distribute fails for a published version (a manifest or the cask is refused) | Fix the generator on main, then run distribute by hand from main with that tag. The run uses main's generator and the tag's release files |
For wider cases, see the troubleshooting guide.