From 494d28ebe4e0e5075fbab0b533421d977eaaf046 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Thu, 28 Aug 2025 19:38:58 +0300 Subject: [PATCH] chore: fix release action of ui docs (#13329) * chore: fix release action of ui docs * fix ignore build script --- .github/workflows/generate-public-references.yml | 2 +- www/ignore-build-script.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/generate-public-references.yml b/.github/workflows/generate-public-references.yml index 847d2c7094..f1cf7af427 100644 --- a/.github/workflows/generate-public-references.yml +++ b/.github/workflows/generate-public-references.yml @@ -293,7 +293,7 @@ jobs: working-directory: www/utils/packages/react-docs-generator - name: Generate Colors - run: yarn copy-colors + run: yarn prep working-directory: www/apps/ui - name: Update Medusa Dependencies diff --git a/www/ignore-build-script.sh b/www/ignore-build-script.sh index 4758d5996d..05a1b064ec 100644 --- a/www/ignore-build-script.sh +++ b/www/ignore-build-script.sh @@ -1,11 +1,5 @@ #!/bin/bash -# Exit early if the PR branch doesn't start with 'docs/' -if [[ ! "$VERCEL_GIT_COMMIT_REF" =~ ^docs/ ]]; then - echo "🛑 - Build cancelled: Branch does not start with 'docs/'" - exit 0; -fi - if [[ "$1" == "docs-old" ]]; then echo "🛑 - Build cancelled: Can't build old docs" exit 0; @@ -34,6 +28,12 @@ if [[ "$VERCEL_ENV" == "production" && $diffResult -eq 1 ]] ; then exit 1; fi +# Exit early if the PR branch doesn't start with 'docs/' +if [[ ! "$VERCEL_GIT_COMMIT_REF" =~ ^docs/ ]]; then + echo "🛑 - Build cancelled: Branch does not start with 'docs/'" + exit 0; +fi + # For preview environments, check project-specific directories if [[ "$VERCEL_ENV" == "preview" && -n "$PROJECT_NAME" ]]; then # Check for changes in the specific project directory