We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02688b9 commit 363b270Copy full SHA for 363b270
1 file changed
.github/workflows/prepare-release.yml
@@ -38,7 +38,14 @@ jobs:
38
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
run: |
40
# Run semantic-release with dry-run to detect version
41
- NEXT_VERSION=$(npx semantic-release --dry-run --verify-conditions false | tee /dev/stderr | awk '/The next release version is/{print $NF}')
+ set -o pipefail
42
+ if ! OUTPUT=$(npx semantic-release --dry-run --verify-conditions false --verify-release false 2>&1); then
43
+ echo "$OUTPUT"
44
+ echo "::error::semantic-release failed during version detection"
45
+ exit 1
46
+ fi
47
48
+ NEXT_VERSION=$(echo "$OUTPUT" | awk '/The next release version is/{print $NF}')
49
echo "next=$NEXT_VERSION" >> $GITHUB_OUTPUT
50
51
- name: Update package.json
0 commit comments