@@ -222,20 +222,35 @@ jobs:
222222 echo "## $(date '+%Y-%m-%d')" >> CHANGELOG.md
223223 echo "" >> CHANGELOG.md
224224
225- # Add package versions to workspace changelog
226- melos list --long --json | jq -r '.[] | "- **\(.name)** v\(.version)"' >> CHANGELOG.md
225+ # Add package versions to workspace changelog (using parsable format instead of JSON)
226+ echo "### 📦 Updated Packages" >> CHANGELOG.md
227+ echo "" >> CHANGELOG.md
228+ melos list --no-private --long | while read -r line; do
229+ if [ -n "$line" ]; then
230+ package_name=$(echo "$line" | awk '{print $1}')
231+ package_version=$(echo "$line" | awk '{print $2}')
232+ echo "- **$package_name** v$package_version" >> CHANGELOG.md
233+ fi
234+ done
235+ echo "" >> CHANGELOG.md
227236
228237 - name : 🏷️ Create release tags
229238 if : steps.check-changes.outputs.changed_packages > 0
230239 run : |
231- # Get the list of packages that were versioned
232- VERSIONED_PACKAGES=$(melos list --json | jq -r '.[].name')
233-
234- for package in $VERSIONED_PACKAGES; do
235- VERSION=$(melos list --json | jq -r ".[] | select(.name == \"$package\") | .version")
236- if [ ! -z "$VERSION" ] && [ "$VERSION" != "null" ]; then
237- echo "Creating tag for $package@$VERSION"
238- git tag "$package@$VERSION" -m "Release $package version $VERSION"
240+ # Create tags for versioned packages (using long format instead of JSON)
241+ echo "🏷️ Creating release tags..."
242+
243+ melos list --no-private --long | while read -r line; do
244+ if [ -n "$line" ]; then
245+ package_name=$(echo "$line" | awk '{print $1}')
246+ package_version=$(echo "$line" | awk '{print $2}')
247+
248+ if [ -n "$package_name" ] && [ -n "$package_version" ]; then
249+ echo "Creating tag for $package_name@$package_version"
250+ git tag "$package_name@$package_version" -m "Release $package_name version $package_version"
251+ else
252+ echo "⚠️ Could not parse package info from: $line"
253+ fi
239254 fi
240255 done
241256
0 commit comments