Skip to content

Commit ad7346d

Browse files
committed
feat: improvements
1 parent 8539c12 commit ad7346d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/publish-sdk.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ jobs:
7878
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
7979
VERSION="${{ github.event.inputs.version }}"
8080
else
81-
# Auto-generate unique version using current commit count for the entire repo
82-
# This ensures each commit gets a unique, incrementing version number
81+
# Auto-generate alpha version using commit count
82+
# Format: {major}.{minor}.{fix}.a{commit_count}
8383
TOTAL_COMMITS=$(git rev-list --count HEAD)
8484
CURRENT_VERSION=$(grep -o 'version = "[^"]*"' pyproject.toml | sed 's/version = "\(.*\)"/\1/')
85-
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d. -f1-2)
86-
VERSION="${BASE_VERSION}.${TOTAL_COMMITS}"
85+
BASE_VERSION=$(echo $CURRENT_VERSION | cut -d'a' -f1)
86+
VERSION="${BASE_VERSION}a${TOTAL_COMMITS}"
8787
fi
8888
8989
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT

sdk/klyne/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Version information for Klyne SDK."""
22

3-
__version__ = "0.1.0"
3+
__version__ = "0.1.0a99"

sdk/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "klyne"
3-
version = "0.1.0"
3+
version = "0.1.0a99"
44
description = "Lightweight Python package analytics SDK"
55
readme = "README.md"
66
authors = [

0 commit comments

Comments
 (0)