Skip to content

Commit 8a803f0

Browse files
committed
Use semverator bump
1 parent 57f25e5 commit 8a803f0

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ This should be added to a `pkg doctor` type thing I reckon. E.g.
7575

7676
## Bump
7777

78-
Inputs: TAG_NAME
78+
Inputs: PRIORITY
7979

8080
```sh
8181
if ! git diff-index --quiet HEAD --; then
@@ -88,10 +88,9 @@ if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then
8888
exit 1
8989
fi
9090

91-
if [[ "$TAG_NAME" != v* ]]; then
92-
TAG_NAME="v$TAG_NAME"
93-
fi
91+
V=$(git describe --tags --abbrev=0 --match "v[0-9]*.[0-9]*.[0-9]*")
92+
V=$(tea semverator bump $V $PRIORITY)
9493

9594
git push origin main
96-
tea gh release create "$TAG_NAME"
95+
tea gh release create "v$V"
9796
```

0 commit comments

Comments
 (0)