chore: fix release action of ui docs (#13329)
* chore: fix release action of ui docs * fix ignore build script
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user