Skip to content

Commit 1b2e2ae

Browse files
committed
fix: set initial version to v0.0.0 and loosen conventional commit regex
1 parent 295f4cf commit 1b2e2ae

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.buildkite/version.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ set -euo pipefail
1010
LATEST=$(git tag -l 'v*' --sort=-v:refname | head -1 || echo "")
1111

1212
if [[ -z "$LATEST" ]]; then
13-
# No tags exist - start from v0.1.0
14-
MAJOR=0; MINOR=1; PATCH=0
13+
# No tags exist - start from v0.0.0
14+
MAJOR=0; MINOR=0; PATCH=0
1515
COMMITS=$(git log --pretty=format:"%s" 2>/dev/null || echo "")
1616
else
1717
if [[ "$LATEST" =~ ^v([0-9]+)\.([0-9]+)\.([0-9]+)$ ]]; then
@@ -26,7 +26,7 @@ else
2626
fi
2727

2828
# Check if any conventional commits exist
29-
if ! echo "$COMMITS" | grep -qE '^(feat|fix|refactor|perf|docs|style|test|chore)(!|\()'; then
29+
if ! echo "$COMMITS" | grep -qE '^(feat|fix|refactor|perf|docs|style|test|chore)'; then
3030
# No conventional commits since last tag — no release needed
3131
exit 0
3232
fi

0 commit comments

Comments
 (0)