git icon indicating copy to clipboard operation
git copied to clipboard

Issue running on local env (different branches)

Open actorius opened this issue 8 months ago • 1 comments

Hello, can not understand that is wrong.

Have configuration in package.json

"branches": [
      { "name": "releases-v2" },
      { "name": "master", "prerelease":"alpha", "channel": "alpha" }
    ],

when i run in local terminal, output says that is branches different

This test run was triggered on the branch heads/releases-v2, while semantic-release is configured to only publish from releases-v2, master, therefore a new version won’t be published.

Why this is happen and that i should do to solve it?

actorius avatar Apr 23 '25 02:04 actorius

does the branch exist on the remote? it must exist there, so i expect pushing your branch to remote will resolve your issue

keep in mind that semantic-release is intended to be used in the context of a ci pipeline, so while it is possible to run locally, be aware that there are details like this that need to be considered for how it would reference these details from the context of a ci pipeline

travi avatar Apr 25 '25 21:04 travi