You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release.yml
+24-28Lines changed: 24 additions & 28 deletions
Original file line number
Diff line number
Diff line change
@@ -49,20 +49,14 @@ jobs:
49
49
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50
50
run: |
51
51
set -euo pipefail
52
-
53
-
echo "Running semantic-release dry-run to extract next version..."
54
-
VERSION=$(npx semantic-release --no-ci --dry-run 2>&1 | tee semantic-output.log | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+' || true)
55
-
52
+
VERSION=$(npx semantic-release --no-ci --dry-run --branch ${{ github.ref_name }} 2>&1 | tee semantic-output.log | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+(?:-[A-Za-z0-9.]+)?' || true)
56
53
if [ -z "$VERSION" ]; then
57
54
echo "Failed to extract VERSION from semantic-release output:"
0 commit comments