We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 383f95f commit fc8c4e8Copy full SHA for fc8c4e8
1 file changed
.github/workflows/SemanticRelease.yml
@@ -51,8 +51,7 @@ jobs:
51
id: increment
52
if: steps.parse.outputs.type != 'none'
53
run: |
54
- # strip 'v' prefix if present, and sort them as versions
55
- LATEST_VERSION=$(git tag | sed 's/^v//' | sort -V | tail -n 1)
+ LATEST_VERSION=$(git tag | sed -E -n 's/^v//; /^[0-9]+\.[0-9]+\.[0-9]+$/p' | sort -V | tail -n 1)
56
57
if [ -z "$LATEST_VERSION" ]; then
58
LATEST_VERSION="0.0.0"
0 commit comments