You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(ci): use dynamic package detection with yarn package-tools --recursive
Replace hardcoded packages array with dynamic detection using
yarn package-tools list --recursive to correctly detect all affected
packages including dependents. This ensures webex is detected when
sub-packages change.
Co-authored-by: Cursor <cursoragent@cursor.com>
# Get packages with --recursive to include dependent packages (like webex)
78
+
# This ensures that if @webex/plugin-meetings changes, webex is also detected
79
+
if [ -n "$PREVIOUS_TAG" ]; then
80
+
PACKAGES=$(yarn package-tools list --recursive --since "$PREVIOUS_TAG" 2>/dev/null || echo "webex")
81
+
else
82
+
PACKAGES=$(yarn package-tools list --recursive --since origin/next 2>/dev/null || echo "webex")
83
+
fi
84
+
85
+
echo "📦 Detected packages: ${PACKAGES}"
86
+
87
+
# Convert comma-separated to JSON array (handle curly braces from output)
88
+
PACKAGES_CLEAN=$(echo "$PACKAGES" | tr -d '{}')
89
+
PACKAGES_JSON=$(echo "$PACKAGES_CLEAN" | tr ',' '\n' | sed 's/^[[:space:]]*//;s/[[:space:]]*$//' | sed 's/.*/"&"/' | tr '\n' ',' | sed 's/,$//' | sed 's/^/[/' | sed 's/$/]/')
0 commit comments