Skip to content

fix(ci): calculate prerelease versions in dry runs - #541

Merged
patrickkabwe merged 1 commit into
mainfrom
fix/prerelease-dry-run
Sep 18, 2026
Merged

patrickkabwe merged 1 commit into
mainfrom
fix/prerelease-dry-run

Conversation

@patrickkabwe

@patrickkabwe patrickkabwe commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • run semantic-release prereleases through a small JS API wrapper instead of --extends
  • keep the selected source branch classified as a prerelease branch
  • preserve local dry-run scripts for main and next

Why

semantic-release merges --extends before the repo release.config.cjs, so the stable config was overriding prerelease branches and producing 3.7.2 instead of 3.7.2-next.1.

Verification

Summary by CodeRabbit

  • Chores
    • Updated pre-release publishing to consistently handle both the main and next release channels.
    • Added a dedicated pre-release runner for standard and dry-run releases.
    • Improved release command handling for CI and local dry-run scenarios.
    • Pre-release configuration now applies channel metadata to the selected branch while retaining the other branch in the release configuration.

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: cfcd71e4-f1f1-4421-a78c-4708029e3431

📥 Commits

Reviewing files that changed from the base of the PR and between 107a8ee and f88e85f.

📒 Files selected for processing (4)
  • .github/workflows/pre-release.yml
  • package.json
  • release.prerelease.config.cjs
  • scripts/semantic-release-prerelease.cjs
 ______________________________________________
< This is O(n) in theory and O(🤡) in practice. >
 ----------------------------------------------
  \
   \   (\__/)
       (•ㅅ•)
       /   づ
✨ Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@patrickkabwe
patrickkabwe merged commit 8c2bac3 into main Sep 18, 2026
25 of 26 checks passed
@patrickkabwe
patrickkabwe deleted the fix/prerelease-dry-run branch September 18, 2026 08:30
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 3.8.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant