Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 15 additions & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,20 @@
publish = "packages/open-workflow-diagram-editor/dist-storybook"
ignore = """
set -e -o pipefail
git fetch --no-tags --depth=1 origin main:refs/remotes/origin/main

if [ -n "${REVIEW_ID:-}" ]; then
# For PR previews, fetch GitHub's synthetic merge commit.
FETCH_REF="refs/pull/${REVIEW_ID}/merge"
else
# For branch builds, fetch the branch being deployed.
FETCH_REF="$BRANCH"
fi

# Always deploy if fetch fails.
git fetch --no-tags --depth=2 origin "$FETCH_REF" || exit 1
Comment thread
fantonangeli marked this conversation as resolved.
BASE_REF="$(git rev-parse FETCH_HEAD^1)"
echo "FETCH_REF=$FETCH_REF BASE_REF=$BASE_REF"

npm i -g "pnpm@$PNPM_VERSION"
! pnpm -F '...[origin/main]' -rc exec 'echo "$PNPM_PACKAGE_NAME"' | grep -Fqx "$PREVIEW_PACKAGE_NAME"
! pnpm -F "...[$BASE_REF]" -rc exec 'echo "$PNPM_PACKAGE_NAME"' | grep -Fqx "$PREVIEW_PACKAGE_NAME"
Comment thread
fantonangeli marked this conversation as resolved.
"""