Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/publish_web_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
type: string
token:
description: 'Personal Access Token'
required: true
required: false
default: ""
type: string
publish_ui:
Expand All @@ -25,7 +25,7 @@ on:
type: string
token:
description: 'Personal Access Token'
required: true
required: false
default: ""
type: string
publish_ui:
Expand All @@ -43,20 +43,32 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- id: get-version
- id: get-current-version
if: github.event.inputs.custom_version != ''
uses: ./.github/actions/get-semantic-release-version
with:
custom_version: ${{ github.event.inputs.custom_version }}
token: ${{ github.event.inputs.token || github.token }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: './ui/.nvmrc'
- name: Bump file versions (temporarily for Web UI publish)
if: github.event.inputs.custom_version != ''
env:
CURRENT_VERSION: ${{ steps.get-version.outputs.highest_semver_tag }}
NEXT_VERSION: ${{ steps.get-version.outputs.version_without_prefix }}
run: python ./infra/scripts/release/bump_file_versions.py ${CURRENT_VERSION} ${NEXT_VERSION}
CUSTOM_VERSION: ${{ github.event.inputs.custom_version }}
run: |
# Get current version from action output (already normalized without 'v' prefix)
CURRENT_VERSION="${{ steps.get-current-version.outputs.version_without_prefix }}"

# Normalize custom version (next version) by removing 'v' prefix if present
NEXT_VERSION="${CUSTOM_VERSION}"
if [[ "$NEXT_VERSION" =~ ^v ]]; then
NEXT_VERSION="${NEXT_VERSION:1}"
fi

echo "Using current version from action: $CURRENT_VERSION"
echo "Using next version (custom): $NEXT_VERSION"
python ./infra/scripts/release/bump_file_versions.py ${CURRENT_VERSION} ${NEXT_VERSION}
- name: Install yarn dependencies
working-directory: ./ui
run: yarn install
Expand Down