44 branches-ignore :
55 - ' main'
66 - ' master'
7+ # We currently dont intend to test the showcase per package bump so wont run for package bumps
8+ # we will run on the collected bumps merging though
9+ - ' dependabot/**'
10+
711 workflow_dispatch :
812
913permissions :
@@ -83,15 +87,40 @@ jobs:
8387 echo "Semantic Release packages installed."
8488 npm ls --depth=0 # Debug: List installed packages
8589
86- # configured with .releaseserc
90+ # Configured with .releaseserc
8791 # Dry run we are not versioning the repo
8892 - name : Run dev semantic version (None Blocking)
8993 id : detect_semantic_version
9094 run : |
95+ echo "error catch run of semver first to get any error detail on config issues"
96+ set +e
97+ SEMVER_OUTPUT_RAW_ERROR_CHECK=$(npx semantic-release --dry-run 2> /tmp/semantic-release-errors.log)
98+ STATUS_ERROR_CHECK=$?
99+
100+ # Now you can check the status and log the error messages if an error occurred
101+ if [ $STATUS_ERROR_CHECK -ne 0 ]; then
102+ echo "❌ Semantic release failed with exit code $STATUS_ERROR_CHECK."
103+ echo "❌ Error output:"
104+ cat /tmp/semantic-release-errors.log
105+ else
106+ echo "✅ Semantic Ouput success : $SEMVER_OUTPUT_RAW_ERROR_CHECK "
107+ echo "✅ Error on success : $STATUS_ERROR_CHECK"
108+ fi
109+
110+ set -e
111+
91112
92113 echo "running semantic-release"
93- SEMVER_OUTPUT_RAW=$(npx semantic-release --dry-run 2>&1)
94- STATUS=$?
114+ semver_output_raw=$(npx semantic-release --dry-run 2>&1)
115+ status=$?
116+
117+ # Now you can check the status and log the error messages if an error occurred
118+ if [ $STATUS -ne 0 ]; then
119+ echo "Semantic release failed with exit code $STATUS."
120+ echo "Error output:"
121+ cat /tmp/semantic-release-errors.log
122+ fi
123+
95124 echo "status = $STATUS"
96125 echo "$SEMVER_OUTPUT_RAW"
97126
@@ -357,5 +386,4 @@ jobs:
357386 -H "Authorization: Bearer $TEL_GIT_PACKAGES_TOKEN" \
358387 -H "X-GitHub-Api-Version: 2022-11-28" \
359388 https://api.github.com/repos/$repo_owner/$repo_name/dispatches \
360- -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"artifact_url\": \"$artifact_url\"}}"
361-
389+ -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"artifact_url\": \"$artifact_url\"}}"
0 commit comments