From 24d04765320d4b89d842d23a1cbdad4302a6435c Mon Sep 17 00:00:00 2001 From: Artem Sorokin <38620398+seemewalkin@users.noreply.github.com> Date: Thu, 27 Nov 2025 13:48:56 +0100 Subject: [PATCH] ci: Prevent RC versions from being promoted to stable/beta channels (#22388) --- .github/workflows/release-push-to-channel.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release-push-to-channel.yml b/.github/workflows/release-push-to-channel.yml index de2ff900ffd..2aad3783e41 100644 --- a/.github/workflows/release-push-to-channel.yml +++ b/.github/workflows/release-push-to-channel.yml @@ -41,6 +41,17 @@ jobs: exit 1 fi + - name: Block RC promotion to stable/beta + env: + INPUT_VERSION: ${{ github.event.inputs.version }} + CHANNEL: ${{ github.event.inputs.release-channel }} + run: | + if [[ "$INPUT_VERSION" == *"-rc."* ]]; then + echo "::error::RC versions cannot be promoted to '$CHANNEL' channel. Version '$INPUT_VERSION' contains '-rc.'" + exit 1 + fi + echo "✅ Version '$INPUT_VERSION' is allowed for '$CHANNEL' channel" + release-to-npm: name: Release to NPM runs-on: ubuntu-latest