9
9
type : string
10
10
token :
11
11
description : ' Personal Access Token'
12
- required : true
12
+ required : false
13
13
default : " "
14
14
type : string
15
15
publish_ui :
25
25
type : string
26
26
token :
27
27
description : ' Personal Access Token'
28
- required : true
28
+ required : false
29
29
default : " "
30
30
type : string
31
31
publish_ui :
@@ -43,20 +43,32 @@ jobs:
43
43
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
44
44
steps :
45
45
- uses : actions/checkout@v4
46
- - id : get-version
46
+ - id : get-current-version
47
+ if : github.event.inputs.custom_version != ''
47
48
uses : ./.github/actions/get-semantic-release-version
48
49
with :
49
- custom_version : ${{ github.event.inputs.custom_version }}
50
50
token : ${{ github.event.inputs.token || github.token }}
51
51
- name : Setup Node.js
52
52
uses : actions/setup-node@v3
53
53
with :
54
54
node-version-file : ' ./ui/.nvmrc'
55
55
- name : Bump file versions (temporarily for Web UI publish)
56
+ if : github.event.inputs.custom_version != ''
56
57
env :
57
- CURRENT_VERSION : ${{ steps.get-version.outputs.highest_semver_tag }}
58
- NEXT_VERSION : ${{ steps.get-version.outputs.version_without_prefix }}
59
- run : python ./infra/scripts/release/bump_file_versions.py ${CURRENT_VERSION} ${NEXT_VERSION}
58
+ CUSTOM_VERSION : ${{ github.event.inputs.custom_version }}
59
+ run : |
60
+ # Get current version from action output (already normalized without 'v' prefix)
61
+ CURRENT_VERSION="${{ steps.get-current-version.outputs.version_without_prefix }}"
62
+
63
+ # Normalize custom version (next version) by removing 'v' prefix if present
64
+ NEXT_VERSION="${CUSTOM_VERSION}"
65
+ if [[ "$NEXT_VERSION" =~ ^v ]]; then
66
+ NEXT_VERSION="${NEXT_VERSION:1}"
67
+ fi
68
+
69
+ echo "Using current version from action: $CURRENT_VERSION"
70
+ echo "Using next version (custom): $NEXT_VERSION"
71
+ python ./infra/scripts/release/bump_file_versions.py ${CURRENT_VERSION} ${NEXT_VERSION}
60
72
- name : Install yarn dependencies
61
73
working-directory : ./ui
62
74
run : yarn install
0 commit comments