We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
semverator bump
1 parent 57f25e5 commit 8a803f0Copy full SHA for 8a803f0
README.md
@@ -75,7 +75,7 @@ This should be added to a `pkg doctor` type thing I reckon. E.g.
75
76
## Bump
77
78
-Inputs: TAG_NAME
+Inputs: PRIORITY
79
80
```sh
81
if ! git diff-index --quiet HEAD --; then
@@ -88,10 +88,9 @@ if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
88
exit 1
89
fi
90
91
-if [[ "$TAG_NAME" != v* ]]; then
92
- TAG_NAME="v$TAG_NAME"
93
-fi
+V=$(git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*")
+V=$(tea semverator bump $V $PRIORITY)
94
95
git push origin main
96
-tea gh release create "$TAG_NAME"
+tea gh release create "v$V"
97
```
0 commit comments