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
|
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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user