Skip to content

Commit 363b270

Browse files
ci: skip verifyRelease in prepare-release dry-run
1 parent 02688b9 commit 363b270

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/prepare-release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,14 @@ jobs:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
run: |
4040
# 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}')
41+
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+
echo "$OUTPUT"
48+
NEXT_VERSION=$(echo "$OUTPUT" | awk '/The next release version is/{print $NF}')
4249
echo "next=$NEXT_VERSION" >> $GITHUB_OUTPUT
4350
4451
- name: Update package.json

0 commit comments

Comments
 (0)