File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -46,11 +46,15 @@ Example: `--git.tagName=${name}@${version}`
46
46
## Tag Match
47
47
48
48
Use ` git.tagMatch ` to override the normal matching behavior to find the latest tag. For instance, when doing a major
49
- release to find and set the latest major tag, and include all commits in the changelog since this matching tag.
49
+ release to find and set the latest major tag, and include all commits in the changelog since this matching tag. Note
50
+ that this represents a glob (not a regex):
50
51
51
- Example: ` git.tagMatch: "[0-9]+\\ .[0-9]+\\ .[0-9]+ " `
52
+ Example: ` git.tagMatch: "[0-9]*\ .[0-9]*\ .[0-9]* " `
52
53
53
- This can be useful when using a plugin to determine the next tag:
54
+ Or only ` "[!-]*" ` , as this would match everything that excludes a hyphen, which is normally used excusively in
55
+ pre-releaseses.
56
+
57
+ This could also be useful when using a plugin to determine the next tag:
54
58
55
59
Example: ` git.tagMatch: "[0-9][0-9].[0-1][0-9].[0-9]*" `
56
60
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ release-it major
46
46
When all commits since the latest major tag should be added to the changelog, use ` --git.tagMatch ` :
47
47
48
48
``` bash
49
- release-it major --git.tagMatch=' [0-9]+ \\.[0-9]+ \\.[0-9]+ '
49
+ release-it major --git.tagMatch=' [0-9]* \\.[0-9]* \\.[0-9]* '
50
50
```
51
51
52
52
This will find the latest major matching tag, skipping the pre-release tags.
You can’t perform that action at this time.
0 commit comments