Skip to content

Commit b3238df

Browse files
committed
feat(version): new major
BREAKING CHANGE: inc version
1 parent 082d84b commit b3238df

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,32 @@ jobs:
5757
id: set_semantic_version
5858
run: |
5959
60+
echo "error catch run of semver first to get any error detail on config issues"
61+
62+
set +e
63+
SEMVER_OUTPUT_RAW_ERROR_CHECK=$(npx semantic-release --dry-run 2> /tmp/semantic-release-errors.log)
64+
STATUS_ERROR_CHECK=$?
65+
66+
echo $SEMVER_OUTPUT_RAW_ERROR_CHECK
67+
echo "STATUS_ERROR_CHECK = $STATUS_ERROR_CHECK "
68+
69+
# Now you can check the status and log the error messages if an error occurred
70+
if [ $STATUS_ERROR_CHECK -ne 0 ]; then
71+
echo "❌ Semantic release failed with exit code $STATUS_ERROR_CHECK."
72+
echo "❌ Error output:"
73+
cat /tmp/semantic-release-errors.log
74+
else
75+
echo "✅ Semantic Ouput success : $SEMVER_OUTPUT_RAW_ERROR_CHECK "
76+
echo "✅ Error on success : $STATUS_ERROR_CHECK"
77+
fi
78+
79+
set -e
80+
6081
echo "running semantic-release"
6182
SEMVER_OUTPUT_RAW=$(npx semantic-release 2>&1)
6283
STATUS=$?
6384
echo "status = $STATUS"
64-
echo "$SEMVER_OUTPUT_RAW"
85+
echo "$SEMVER_OUTPUT_RAW"
6586
6687
# Check for no changes and set SEMVER_VERSION accordingly
6788
if echo "$SEMVER_OUTPUT_RAW" | grep -q 'There are no relevant changes'; then

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,9 @@ It is recommended you check setup by reading this section and making sure packag
133133
- e.g.
134134
> 'docs(readme): added detail on commit rules'
135135
[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)
136+
137+
138+
You can also look here, but the semantic-release angular badge above is the best reference.
136139
[Commit conventions](https://github.com/angular/angular/blob/main/contributing-docs/commit-message-guidelines.md)
137140

138141
#### Configuring the project

0 commit comments

Comments
 (0)