File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -74,13 +74,15 @@ jobs:
74
74
run : |
75
75
CURRENT_VERSION="${{ steps.current_version.outputs.version }}"
76
76
if [[ "${{ github.event_name }}" == "workflow_dispatch" ]]; then
77
+ # Strip any existing alpha suffix
78
+ BASE_VERSION=${CURRENT_VERSION%-alpha*}
77
79
# Split version into parts
78
- IFS='.' read -r -a version_parts <<< "$CURRENT_VERSION "
80
+ IFS='.' read -r -a version_parts <<< "$BASE_VERSION "
79
81
PATCH=$((version_parts[2] + 1))
80
82
NEW_VERSION="${version_parts[0]}.${version_parts[1]}.${PATCH}"
81
83
82
84
if [[ "${{ steps.release_type.outputs.type }}" == "alpha" ]]; then
83
- NEW_VERSION="${NEW_VERSION}-alpha"
85
+ NEW_VERSION="${NEW_VERSION}-alpha.1 "
84
86
fi
85
87
else
86
88
NEW_VERSION="$CURRENT_VERSION"
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @aithranetwork/plugin-aithra-toolkit" ,
3
- "version" : " 0.0.6-alpha-alpha.1 " ,
3
+ "version" : " 0.0.5 " ,
4
4
"type" : " module" ,
5
5
"main" : " dist/index.js" ,
6
6
"module" : " dist/index.js" ,
You can’t perform that action at this time.
0 commit comments