Skip to content

Commit af34839

Browse files
committed
feat(major): Breaking change
BREAKING CHANGE: New version please
1 parent 098fa20 commit af34839

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,18 @@ jobs:
5454
id: set-semantic-version
5555
run: |
5656
set +e
57-
SEMVER_VERSION=$(npx semantic-release | grep -oP 'Published release \K[\d.]+')
57+
RELEASE_OUTPUT=$(npx semantic-release 2>&1)
58+
echo "$RELEASE_OUTPUT"
59+
60+
# Try to extract the version from the full output
61+
SEMVER_VERSION=$(echo "$RELEASE_OUTPUT" | grep -oP 'Published release \K[\d.]+')
62+
63+
# Output it clearly for debugging
64+
echo "Parsed semantic-release version: $SEMVER_VERSION"
65+
66+
# Set GitHub Action output
5867
echo "semantic-release-version=$SEMVER_VERSION" >> $GITHUB_OUTPUT
59-
68+
6069
# Check if SEMVER_VERSION is empty and echo the message if so
6170
if [ -z "$SEMVER_VERSION" ]; then
6271
echo "Changes do not warrant a version change. gh_pages and packages won't be updated."

0 commit comments

Comments
 (0)