Skip to content

Commit ffd87a6

Browse files
committed
feat: update versioning logic in GitHub Actions and set package version to 0.0.5
1 parent d36ac14 commit ffd87a6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ jobs:
7474
run: |
7575
CURRENT_VERSION="${{ steps.current_version.outputs.version }}"
7676
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
77+
# Strip any existing alpha suffix
78+
BASE_VERSION=${CURRENT_VERSION%-alpha*}
7779
# Split version into parts
78-
IFS='.' read -r -a version_parts <<< "$CURRENT_VERSION"
80+
IFS='.' read -r -a version_parts <<< "$BASE_VERSION"
7981
PATCH=$((version_parts[2] + 1))
8082
NEW_VERSION="${version_parts[0]}.${version_parts[1]}.${PATCH}"
8183
8284
if [[ "${{ steps.release_type.outputs.type }}" == "alpha" ]]; then
83-
NEW_VERSION="${NEW_VERSION}-alpha"
85+
NEW_VERSION="${NEW_VERSION}-alpha.1"
8486
fi
8587
else
8688
NEW_VERSION="$CURRENT_VERSION"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aithranetwork/plugin-aithra-toolkit",
3-
"version": "0.0.6-alpha-alpha.1",
3+
"version": "0.0.5",
44
"type": "module",
55
"main": "dist/index.js",
66
"module": "dist/index.js",

0 commit comments

Comments
 (0)