File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -361,6 +361,16 @@ jobs:
361361 echo "published=true" >> $GITHUB_OUTPUT
362362 echo "packages=$PUBLISHED_PACKAGES" >> $GITHUB_OUTPUT
363363
364+ # Update the version output to reflect the actual published version
365+ # Extract the version from the first published package
366+ if [ -n "$PUBLISHED_PACKAGES" ]; then
367+ ACTUAL_VERSION=$(echo "$PUBLISHED_PACKAGES" | tr ' ' '\n' | grep '@' | sed 's/.*@//' | head -n1)
368+ echo "📋 Setting actual published version: $ACTUAL_VERSION"
369+ echo "version=$ACTUAL_VERSION" >> $GITHUB_OUTPUT
370+ else
371+ echo "⚠️ No published packages found, keeping original version"
372+ fi
373+
364374 - name : Update package versions in consuming projects
365375 if : steps.publish.outputs.published == 'true'
366376 run : |
You can’t perform that action at this time.
0 commit comments