Skip to content

Commit 0280892

Browse files
committed
fix: filter out artifact tags, just use npm tagging
1 parent 13c376a commit 0280892

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ jobs:
5050
- name: Get latest version from git tags
5151
id: get_version
5252
run: |
53-
# Get the latest version tag, default to 0.0.0 if none exists
54-
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
53+
# Get the latest semantic version tag, default to 0.0.0 if none exists
54+
LATEST_TAG=$(git tag --list "v*" --sort=-version:refname | head -n1 || echo "v0.0.0")
5555
# Remove 'v' prefix and increment patch version
5656
VERSION=${LATEST_TAG#v}
5757
IFS='.' read -r major minor patch <<< "$VERSION"

0 commit comments

Comments
 (0)