blob: 81b872954684da7ea7bdbd02c3dbde0dbec6a160 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
---
name: increment-version-and-push
description: Increment the project version, tag it in git, commit, and push.
---
# Increment version and push
Increment the version of the project, tag it in git, commit, and push.
## When to Use
- Use this skill when the user wants to bump the version and release/push a project.
## Instructions
- For Go-based projects, look for the `internal/version.go` file.
- We use semantic versioning: `x.y.z`.
- For bug fixes, increment only `z` (the patch version).
- For new features, increment `y` (the minor version) and reset `z` to 0.
- Never increment `x` (the major version) unless explicitly specified.
- Commit the version change, create a git tag matching the new version, and push both the commit and the tag.
|