File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 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."
You can’t perform that action at this time.
0 commit comments