chore: fix release action of ui docs (#13329)

* chore: fix release action of ui docs

* fix ignore build script
This commit is contained in:
Shahed Nasser
2025-08-28 19:38:58 +03:00
committed by GitHub
parent f239f38e58
commit 494d28ebe4
2 changed files with 7 additions and 7 deletions

View File

@@ -293,7 +293,7 @@ jobs:
working-directory: www/utils/packages/react-docs-generator working-directory: www/utils/packages/react-docs-generator
- name: Generate Colors - name: Generate Colors
run: yarn copy-colors run: yarn prep
working-directory: www/apps/ui working-directory: www/apps/ui
- name: Update Medusa Dependencies - name: Update Medusa Dependencies

View File

@@ -1,11 +1,5 @@
#!/bin/bash #!/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 if [[ "$1" == "docs-old" ]]; then
echo "🛑 - Build cancelled: Can't build old docs" echo "🛑 - Build cancelled: Can't build old docs"
exit 0; exit 0;
@@ -34,6 +28,12 @@ if [[ "$VERCEL_ENV" == "production" && $diffResult -eq 1 ]] ; then
exit 1; exit 1;
fi 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 # For preview environments, check project-specific directories
if [[ "$VERCEL_ENV" == "preview" && -n "$PROJECT_NAME" ]]; then if [[ "$VERCEL_ENV" == "preview" && -n "$PROJECT_NAME" ]]; then
# Check for changes in the specific project directory # Check for changes in the specific project directory