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
fix(release): correct dry-run next version and branch config
- Use master as release branch in .releaserc to avoid EDUPLICATEBRANCHES
and satisfy at least-one-release-branch requirement; main stays prerelease beta
- In dry run, create v1.0.0-beta.1 locally when missing so semantic-release
sees a previous release and reports 1.0.0-beta.2 for new commits
git tag -a "v1.0.0-beta.1" "$PARENT" -m "chore: initial beta release (dry-run placeholder)"
123
+
echo "Created local tag v1.0.0-beta.1 at $PARENT so semantic-release can compute next version (1.0.0-beta.2)."
124
+
else
125
+
echo "Tag v1.0.0-beta.1 already exists."
126
+
fi
127
+
116
128
- name: Debug semantic-release config
117
129
run: |
118
130
echo "=== .releaserc.json ==="
@@ -141,7 +153,9 @@ jobs:
141
153
run: |
142
154
if [ "${{ github.event.inputs.dry_run }}" = "true" ]; then
143
155
echo "Running semantic-release in DRY RUN mode..."
144
-
npx semantic-release --dry-run
156
+
npx semantic-release --dry-run 2>&1 | tee semantic-release.log || true
157
+
# Extract "The next release version is X" for use in summary step
158
+
grep -oE "The next release version is [^[:space:]]+" semantic-release.log 2>/dev/null | sed 's/The next release version is //' > next-version.txt || echo "" > next-version.txt
0 commit comments