Hygiene and workflow
New version and changelog
10 min read
Releasing a version usually involves a sequence of steps that are easy to forget: deciding the
number, writing the changelog, updating the version in package.json (or in Cargo.toml, in
pom.xml…), committing, creating the tag, pushing and creating the Release on the server. New
version… does it all in a single window, based on the commit messages following
Conventional Commits, showing first what's going to be
written. If something fails midway, nothing is left half-done.
- Palette (Ctrl+P): "New version…" ("Works out the next version from the commits, generates the changelog and creates the tag"). Outside a version branch, the detail warns: "Works out the version, generates the changelog and creates the tag — note: you're on feature/x". It's unavailable with "wait for the current operation to finish" or "the repository has no commits yet".
- Menu: right-click the current branch › New version…, when it's the main one (
main,master,trunkor Gitflow's production branch) or arelease/*/hotfix/*. - With a workflow: Version in the WORKFLOW section, Release a version of release/1.2… in the branch menu and "Workflow: release a version of release/1.2…" in the palette (for maintained releases).
- In the Workflow health: the New version… action of the "Unreleased" warning.
- In Gitflow: the First, update the version and CHANGELOG (New version…) box when finishing a release or hotfix. See Gitflow.
The version is always created on the checked-out branch. Without a branch (detached HEAD), the window warns "Check out a branch to create the version."
- Open New version…. The window shows "Reading tags and commits…" and then the context line: "Branch main · latest version v1.3.2 · 14 commits since v1.3.2". Without a version tag, it starts from the manifest's version ("no version tag; starting from 1.0.0 (package.json)") or warns "no version tags yet". Commits outside the convention are counted ("(3 not conventional)").
- Under Version, choose the bump. Each button shows the resulting version:
- Automatic: decided by the commits. The hint explains why (table below);
- Major, Minor, Patch;
- Other…: type the version (e.g.
1.4.0or2.0.0-rc.1).
- If it's a pre-release, choose it under Pre-release: "alpha (-alpha.N)", "beta (-beta.N)" or "release candidate (-rc.N)". The default is "none (final release)".
- Check the Tag prefix (e.g.
v; empty = "(no prefix)") and the resulting Tag. The prefix you type is remembered in this repository. - Check the changelog section:
- the Update CHANGELOG.md box (or Create CHANGELOG.md, if the file doesn't exist yet) turns the changelog on or off;
- Preview shows the formatted section; Edit text lets you rewrite it;
- Regenerate "Discards your edits and goes back to the text generated from the commits";
- Changelog language: "Automatic: … (from the file)", "Automatic: … (interface language)" or a fixed language (see The changelog language).
- Under Files with the version, check the manifests to update. All the ones Versora knows how to edit come already checked; the others appear disabled, with the reason.
- Under On confirm, review:
- Create the commit, with the Commit message (default
chore(release): v1.4.0). With no file checked, the line says "No files checked: no commit"; - Create the annotated tag v1.4.0;
- Push the commit and the tag to origin/main (or just the commit, without the tag). If the branch isn't on the remote yet, the line adds "(publishes the branch)";
- Create the release on GitLab, with the changelog as its description (or on GitHub), which requires pushing the tag;
- Skip Git hooks on the version commit ("git commit --no-verify: doesn't run the pre-commit and commit-msg hooks").
- Create the commit, with the Commit message (default
- Click Create version 1.4.0. The bar shows "Creating version v1.4.0…" and, if the push is checked, "Pushing v1.4.0…".
- The final window, Version 1.4.0 created, lists what was done, for example:
- "Commit 3f2a1b9 — chore(release): v1.4.0";
- "Annotated tag v1.4.0";
- "Pushed to origin/main, with tag v1.4.0";
- "Release v1.4.0 created on GitLab", with Open in browser and Copy link.
| Commits since the last version | Bump | Hint |
|---|---|---|
Any with a breaking change (feat!: or a BREAKING CHANGE: footer) | major | "Automatic: there's a breaking change." |
Any feat | minor | "Automatic: there are new features (feat)." |
Any fix or perf | patch | "Automatic: there are fixes (fix/perf)." |
Only docs, chore and the like | patch | "Automatic: only changes that don't affect the version (docs, chore…): patch." |
The last version is the most recent SemVer tag reachable from HEAD, with or without the prefix.
Tags that aren't SemVer are ignored.
| Option | What it does | Default |
|---|---|---|
| Version | Automatic, Major, Minor, Patch or Other… | Automatic |
| Pre-release | Adds -alpha.N, -beta.N or -rc.N. | none (final release) |
| Tag prefix | Text before the number in the tag. | the one in Preferences › Versions and commits (automatic: detected from the tags) |
| Update/Create CHANGELOG.md | Writes the version's section in the changelog. | on |
| Changelog language | Language of the headings and sentences Versora writes. | Automatic |
| Files with the version | Manifests whose version is replaced. | all the editable ones |
| Commit message | Message of the version commit. | chore(release): <tag> |
| Create the annotated tag | Creates the annotated tag. | on (off on a Gitflow release/hotfix branch) |
| Push… | Pushes the commit and the tag. | off the first time; after that, your last choice |
| Create the release on GitLab/GitHub | Creates the Release with the changelog as its description. Only available with the push and the tag checked. | off the first time; after that, your last choice |
| Skip Git hooks on the version commit | git commit --no-verify. | off |
Versora looks in the root and in the first-level folders and replaces only the version text, without rewriting the file (the key order, indentation, quotes and line endings stay as they are):
| File | What it is |
|---|---|
package.json | package version (npm) |
package-lock.json | root package version in the npm lockfile |
npm-shrinkwrap.json | root package version in the npm shrinkwrap |
Cargo.toml | Rust package version ([package]) |
Cargo.lock | package version in Cargo.lock (the package's own) |
tauri.conf.json | Tauri app version |
pom.xml | Maven project version |
pyproject.toml | Python project version |
build.gradle / build.gradle.kts | Gradle project version (Groovy / Kotlin) |
gradle.properties | version in gradle.properties |
*.csproj and Directory.Build.props | .NET project version (<Version>) |
A manifest appears disabled when the version isn't in it: "version inherited from the workspace (update the root Cargo.toml)", "dynamic version (set by another tool)", "version inherited from ‹parent›" or "version not found in the file". With none at all, the section says "No manifest with a version in the root or in first-level folders."
The new section goes at the top, before the most recent version. The rest of the file stays intact, including the line endings (CRLF or LF) and the BOM. The format follows conventional-changelog's:
## [1.4.0](https://gitlab.exemplo.com/loja/web/-/compare/v1.3.2...v1.4.0) (2026-11-26)
### BREAKING CHANGES
- **api:** the old token is no longer valid
and needs to be recreated (a1b2c3d), refs #12
### Features
- **api:** new authentication (a1b2c3d), refs #12
### Bug Fixes
- **web:** fix the menu (c3d4e5f), refs PROJ-9, !45
### Performance Improvements
- query cache (d4e5f6a)
### Other Changes
- Adjust things (f6a7b8c)
- When the remote is a recognized GitLab or GitHub project, the heading gets the comparison link
to the previous version, and the commits (and, on GitLab, the merge requests mentioned) become
links. Without that
(or without a previous version), the heading is
## 1.4.0 (2026-11-26). - Merge commits and
chore(release):commits are left out. - With no changes at all, the section says "No changes recorded since the previous version."
- In a new file, Versora writes the
# Changelogheading and the sentence "All notable changes to this project are documented in this file." - If you edited the text by hand, changing the version or the language doesn't rebuild the section: "Text edited by hand: changing the version or the language doesn't rebuild the section (use "Regenerate")."
The group headings and the fixed sentences are written in the language of the changelog,
which isn't the interface's: the file belongs to the repository and is read by the whole team. On
"Automatic", the language of the existing changelog applies (from the headings already written in
it, for example ### Novidades, ### Features or ### Novedades); in a new file, the
interface's. The choice is remembered in this repository. The languages are the same as the
interface's: Portuguese, English and Spanish.
# 1. writes CHANGELOG.md and the versions in the checked manifests
git add -- CHANGELOG.md package.json package-lock.json
# 2. commits only those files (what was already staged stays as it is)
git commit -F - --only -- CHANGELOG.md package.json package-lock.json # + --no-verify, if checked
# 3. annotated tag on the new commit; the message is the tag and the release notes
git tag -a v1.4.0 -F - <commit>
# 4. push, if checked (with --set-upstream when it publishes the branch)
git push origin refs/heads/main:refs/heads/main refs/tags/v1.4.0
Before the push, the usual push checks run. The Release is created through
the GitLab or GitHub API, with the same name as the tag and marked as a pre-release when the
version has a - (e.g. 2.0.0-rc.1).
If the commit fails (because of a hook, for example), the files go back to what they were: "The commit wasn't created; the files were restored." The hook's output appears in the window itself.
Ctrl+Z undoes the version ("Version v1.4.0"): it removes the commit and the tag that were created.
- With a clean working directory before the version, the files also go back to what they were.
- With other changes around, the commit and the tag go away and the version's changes stay staged.
The push and the Release on the server are not undone. When nothing was pushed, the final window reminds you: "Nothing was pushed. Undo (Ctrl+Z) removes the commit and tag created here; to publish later, push the branch and the tag v1.4.0."
- "Version 1.3.0 isn't greater than the latest one (v1.3.2).": choose a greater version.
- "No new commits since v1.3.2.": there's nothing to release.
- "The tag v1.4.0 already exists.": choose another version or delete the old tag.
- "Invalid version: use the MAJOR.MINOR.PATCH format (e.g. 1.4.0 or 2.0.0-rc.1)."
- "The pre-release identifier can only contain letters, numbers and hyphens."
- "There are more than 5000 commits since the last version: the changelog only shows the 5000 most recent."
- "Uncommitted changes in: package.json. Commit or stash those changes, or uncheck the file.": a checked manifest has changes of yours; Versora doesn't mix them with the version.
- "A rebase is in progress. Finish or abort it before creating the version."
- "The version commit was created, but the tag v1.4.0 wasn't: …": create the tag from the commit menu or undo with Ctrl+Z and try again.
- "Push canceled by the pre-push checks.": you canceled at a check; the commit and the tag stay only on your machine.
- "Push failed: …" and "The release wasn't created on GitLab: …": the local version is created; fix the problem and push later.
- "— add a token for gitlab.exemplo.com in Git servers (open)": the Release option needs a token. See Git servers.
- "Go back to this repository's tab to create the version.": the window belongs to the tab it was opened in.
When the tag was pushed without New version… (or the Release wasn't created at the time), you can create the Release later.
- Menu: right-click a tag › Create release on GitLab… (or on GitHub…). The item only appears when the remote is a recognized GitLab or GitHub.
- Right-click the
v1.4.0tag › Create release on GitLab…. - The Create release on GitLab window says "Release for tag v1.4.0 in loja/web. The tag must already be on the server." and where the notes come from: "The notes come from the changelog." (that version's section) or "The notes come from the tag message."
- Adjust the Title and the Notes (Markdown).
- Click Create release. The "Release created" confirmation shows the address and offers Open in browser.
- "Add a token for gitlab.exemplo.com in Git servers to create the release from the app.": Versora opens the server registration.
- "The tag v1.4.0 isn't on GitLab yet: push the tag (from the tag menu) and try again.": push the tag first.
The Release stays on the server: Ctrl+Z doesn't delete it.
In Preferences › Versions and commits (with the repository open), New version group:
| Option | What it does | Default |
|---|---|---|
| Version tag prefix › Detect from existing tags | "Automatic: v if there are already tags like v1.2.3; none if the tags are 1.2.3; v in a repository without tags. Tags without the prefix also count as versions; tags that aren't SemVer are ignored." Turn it off to set a fixed prefix. | on |
| Changelog file | "Path relative to the repository root." | CHANGELOG.md |
| Changelog language | Automatic or a fixed language, per repository. | Automatic |
The same page has the commit message rules (Conventional Commits, commitlint, blocking messages with errors), described in Conventional Commits. The palette opens the page with "Preferences: versions and commits".
For IT
The administrator can hide or lock the Versions and commits page (id release in
preferences_hidden / preferences_locked) and require Conventional Commits through the policy
(commit_conventional) or through the team's .versora.yml. See
Policy keys and
The .versora.yml file.
- Conventional Commits
- Gitflow
- Repository workflow
- Tags
- Git servers
- Official documentation: git tag (opens another site)