You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/release-scm.md
+28-17Lines changed: 28 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Releasing with the SCM Version Provider
2
2
3
+
In this tutorial, you will learn how to bump the version using the `scp` version provider; as you can't use `cz bump`.
4
+
3
5
## About
4
6
5
7
When `version_provider` is set to `scm`, Commitizen reads the version directly from your Git tags instead of a config file.
@@ -11,34 +13,26 @@ tag_format = "v${version}"
11
13
version_provider = "scm"
12
14
```
13
15
14
-
This means `cz bump` cannot complete its usual job of writing the new version anywhere (see [Why can't I bump with SCM?](#why-cant-i-bump-with-scm) below).
16
+
This means `cz bump` cannot complete its usual job of writing the new version anywhere (see [Why can't I bump with SCM?](#why-cant-i-bump-with-scm) below). In the next section, you will learn how to do it anyways.
15
17
16
18
## Creating a New Version Tag Manually
17
19
18
-
To release a new version without an extra commit, compute the next tag yourself and create it directly:
20
+
To release a new version without an extra commit and using tags,
21
+
you can compute the next tag using `cz version` and then, you can manually create the tag directly.
22
+
23
+
In this example, we create an annotated tag with the changelog as the tag message, using just `git`.
19
24
20
25
```sh
21
26
next_version=$(cz version --project --next --tag)
22
-
git tag --annotate "$next_version" --message "$next_version"
0 commit comments