This template should help get you started developing with Tauri, React and Typescript in Vite.
The app version is stored in three files that must stay in sync:
| File | Field |
|---|---|
package.json |
version |
src-tauri/tauri.conf.json |
version |
src-tauri/Cargo.toml |
version |
The script scripts/version.js copies the version from package.json into the other two files. It runs automatically as an npm version hook.
-
Bump the version — pick one of
patch,minor, ormajor:npm version patch # e.g. 0.9.4 → 0.9.5This command:
- Updates
versioninpackage.json - Runs
scripts/version.jsto synctauri.conf.jsonandCargo.toml - Stages the changed files and creates a commit
- Tags the commit as
v<version>
- Updates
-
Push the tag:
git push origin main --tags
-
GitHub Actions (
publish.yaml) picks up thev*tag and builds macOS and Windows binaries usingtauri-apps/tauri-action. A draft GitHub Release is created with the build artifacts attached. -
Open the draft release on GitHub, edit the release notes, and publish it.


