From 8af39aa998db42e49145dfdde9216a310446266f Mon Sep 17 00:00:00 2001 From: vitaligi <54726763+vitaligi@users.noreply.github.com> Date: Thu, 30 Apr 2026 16:52:45 +0300 Subject: [PATCH] ci: adjust publish for alpha release --- .github/workflows/publish.yaml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 879db5b..8a36d91 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -24,8 +24,11 @@ jobs: echo "branch=$BRANCH" >> $GITHUB_OUTPUT - name: Publish to npm run: | - if [ "${{ github.ref_name }}" == "alpha" ]; then - npm publish --access public --tag alpha - else - npm publish --access public - fi + echo "is pre-release: ${{ github.event.release.prerelease }}" + if [[ "${{ github.event.release.prerelease }}" == "true" ]] && [[ "${{ github.ref_name }}" == "${{ steps.package-info.outputs.version }}" ]]; then + echo "publishing prerelease with alpha tag" + # npm publish --access public --tag alpha + else + echo "publishing standard release" + # npm publish --access public + fi