Skip to content

Commit 1a594c9

Browse files
committed
fix: tag name
1 parent eef10a3 commit 1a594c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ jobs:
225225
# Add package versions to workspace changelog (using parsable format instead of JSON)
226226
echo "### 📦 Updated Packages" >> CHANGELOG.md
227227
echo "" >> CHANGELOG.md
228-
melos list --no-private --long | while read -r line; do
228+
melos list --no-private --long | grep -E "^[a-zA-Z_][a-zA-Z0-9_]* [0-9]" | while read -r line; do
229229
if [ -n "$line" ]; then
230230
package_name=$(echo "$line" | awk '{print $1}')
231231
package_version=$(echo "$line" | awk '{print $2}')
@@ -239,12 +239,12 @@ jobs:
239239
run: |
240240
# Create tags for versioned packages (using long format instead of JSON)
241241
echo "🏷️ Creating release tags..."
242-
243-
melos list --no-private --long | while read -r line; do
242+
243+
melos list --no-private --long | grep -E "^[a-zA-Z_][a-zA-Z0-9_]* [0-9]" | while read -r line; do
244244
if [ -n "$line" ]; then
245245
package_name=$(echo "$line" | awk '{print $1}')
246246
package_version=$(echo "$line" | awk '{print $2}')
247-
247+
248248
if [ -n "$package_name" ] && [ -n "$package_version" ]; then
249249
echo "Creating tag for $package_name@$package_version"
250250
git tag "$package_name@$package_version" -m "Release $package_name version $package_version"

0 commit comments

Comments
 (0)