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
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,18 @@ jobs:
id: set-semantic-version
run: |
set +e
SEMVER_VERSION=$(npx semantic-release | grep -oP 'Published release \K[\d.]+')
RELEASE_OUTPUT=$(npx semantic-release 2>&1)
echo "$RELEASE_OUTPUT"

# Try to extract the version from the full output
SEMVER_VERSION=$(echo "$RELEASE_OUTPUT" | grep -oP 'Published release \K[\d.]+')

# Output it clearly for debugging
echo "Parsed semantic-release version: $SEMVER_VERSION"

# Set GitHub Action output
echo "semantic-release-version=$SEMVER_VERSION" >> $GITHUB_OUTPUT

# Check if SEMVER_VERSION is empty and echo the message if so
if [ -z "$SEMVER_VERSION" ]; then
echo "Changes do not warrant a version change. gh_pages and packages won't be updated."
Expand Down
Loading