Incorrect message when branch is not recognized as release branch
Author: gr2mCreated Feb 2, 2020Updated Jul 16, 2026
Labelsbughelp wanted
Current behavior
I get this error message when I was trying to publish from a v1.x branch (instead of 1.x). The message says
This test run was triggered on the branch v1.x, while semantic-release is configured to only publish from master, therefore a new version won’t be published.
Althoug in the same logs above it says
2020-02-02T00:59:10.827Z semantic-release:config options values: { branches: [ '+([0-9])?(.{+([0-9]),x}).x', 'master', 'next', 'next-major', { name: 'beta', prerelease: true }, { name: 'alpha', prerelease: true } ],
Expected behavior
It should list the branches it is configured to publish from, not just say "master"
Environment
- semantic-release version: 17.0.2
- CI environment: GitHub Actions
- Plugins used: defaults
- semantic-release configuration: defaults
- CI logs: https://github.com/octokit/plugin-paginate-rest.js/runs/421313433?check_suite_focus=true
Source: semantic-release/semantic-release