Skip to content

Commit

Permalink
Use semverator bump
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Mar 26, 2023
1 parent 57f25e5 commit 8a803f0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ This should be added to a `pkg doctor` type thing I reckon. E.g.

## Bump

Inputs: TAG_NAME
Inputs: PRIORITY

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

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

git push origin main
tea gh release create "$TAG_NAME"
tea gh release create "v$V"
```

0 comments on commit 8a803f0

Please sign in to comment.