fix: update semantic-release branches to main and v1#44
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Review Summary by QodoUpdate semantic-release branches configuration to main and v1
WalkthroughsDescription• Update semantic-release branches configuration from "release" to "main" and "v1" • Configure v1 branch with dedicated release channel for versioning Diagramflowchart LR
old["branches: release"]
new["branches: v1 channel + main"]
old -- "update configuration" --> new
File Changes1. release.config.js
|
Code Review by Qodo
1. Branch config/workflow mismatch
|
| @@ -1,5 +1,5 @@ | |||
| export default { | |||
| branches: ["release"], | |||
| branches: [{ name: "v1", channel: "v1" }, "main"], | |||
There was a problem hiding this comment.
1. Branch config/workflow mismatch 🐞 Bug ≡ Correctness
.github/workflows/versioned.yml runs npx semantic-release on every v* branch push, but release.config.js only allows releases from v1 and main, so release jobs on branches like v2 will no-op (no publish/tag) even though CI executes the release step.
Agent Prompt
## Issue description
The CI `Versioned` workflow triggers on `v*` branches and executes `semantic-release`, but `semantic-release` is configured to only release from `v1` and `main`. This causes release runs on other `v*` branches to succeed without publishing anything.
## Issue Context
- `versioned.yml` triggers for all `v*` branches and runs `npx semantic-release`.
- `release.config.js` restricts semantic-release branches to `v1` and `main`.
## Fix Focus Areas
- release.config.js[1-3]
- .github/workflows/versioned.yml[3-8]
- .github/workflows/versioned.yml[37-59]
## Proposed fix
Decide the intended release sources:
- If you want releases from multiple `vN` branches: update `release.config.js` to include those branches (e.g., add `v2` / additional maintenance branch definitions).
- If you only want releases from `v1` and `main`: narrow `.github/workflows/versioned.yml` triggers/conditions so it only runs the release job for `v1` (and/or remove the release job from `versioned.yml` for other `v*` branches).
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
|
🎉 This PR is included in version 1.6.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No description provided.