reusable-workflows icon indicating copy to clipboard operation
reusable-workflows copied to clipboard

[Bug]: Automatic release not creating Releases on main-built branches with provided configuration

Open luislard opened this issue 2 years ago • 0 comments

Description of the bug

Using Current HEAD commit in main. The automatic release process does not create a stable release anymore on main-built branch.

It seems that the current release.config.js branches definition is causing the problem: This will not work for having Stable releases on main-built branch.

  "branches": [
    "main",
    "main-built",
    "next",
    "next-built",
    {
      "name": "beta",
      "prerelease": true
    },
    {
      "name": "beta-built",
      "prerelease": true
    },
    {
      "name": "alpha",
      "prerelease": true
    },
    {
      "name": "alpha-built",
      "prerelease": true
    }
  ],

When we provide custom config it works:

["main-built", {"name": "beta-built", "prerelease": true}, {"name": "alpha-built", "prerelease": true} ]

Reproduction instructions

Trigger the release in a main-built branch.

You will get a prerelease instead of a release in GH.

Expected behavior

A stable release is created in GH.

Environment info

No response

Relevant log output

No response

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

luislard avatar Apr 16 '24 07:04 luislard