From 02f3b523f1869e85d71e38fd1fcab90f4d59efd8 Mon Sep 17 00:00:00 2001 From: vitaligi <54726763+vitaligi@users.noreply.github.com> Date: Thu, 30 Apr 2026 17:49:56 +0300 Subject: [PATCH] ci: adjust publish for alpha release --- .github/workflows/publish.yaml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index cd43adc..cc0c0b1 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -26,14 +26,12 @@ jobs: run: | echo "is pre-release: ${{ github.event.release.prerelease }}" echo "publish triggered on: ${{ github.ref_type }}" - if [[ "${{ github.ref_type }}" == "tag" ]] && + if ([[ "${{ github.ref_type }}" == "tag" ]] && [[ "${{ github.event.release.prerelease }}" == "true" ]] && - [[ "${{ github.ref_name }}" == "${{ steps.package-info.outputs.version }}" ]]; then - echo "publishing prerelease with alpha tag from tag" - # npm publish --access public --tag alpha - elif [[ "${{ github.ref_type }}" == "branch" ]] && - [[ "${{ github.ref_name }}" == *"alpha"* ]]; then - echo "publishing prerelease with alpha tag from branch" + [[ "${{ github.ref_name }}" == "${{ steps.package-info.outputs.version }}" ]]) || + ([[ "${{ github.ref_type }}" == "branch" ]] && + [[ "${{ github.ref_name }}" == *"alpha"* ]]); then + echo "publishing prerelease with alpha tag from ${{ github.ref_type }}" # npm publish --access public --tag alpha else echo "publishing standard release"