-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not able to release from Github actions #2567
Comments
I can repro this issue:
Interestingly, running the same ...
[12:26:23 PM] [semantic-release] › ✖ ERELEASEBRANCHES The release branches are invalid in the `branches` configuration.
A minimum of 1 and a maximum of 3 release branches are required in the branches configuration (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#branches).
This may occur if your repository does not have a release branch, such as master.
Your configuration for the problematic branches is [].
AggregateError:
SemanticReleaseError: The release branches are invalid in the `branches` configuration.
at module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/lib/get-error.js:6:10)
at /Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/lib/branches/index.js:45:19
at Array.reduce (<anonymous>)
at module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/lib/branches/index.js:35:46)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async run (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/index.js:65:22)
at async module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/index.js:269:22)
at async module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/cli.js:55:5)
at module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/lib/branches/index.js:67:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async run (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/index.js:65:22)
at async module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/index.js:269:22)
at async module.exports (/Users/josh/repos/template-typescript-node-package/node_modules/semantic-release/cli.js:55:5)% https://github.com/semantic-release/semantic-release/blob/e516748/docs/usage/configuration.md#branches says |
I think the problem is that your default branch is |
Oh, is there a tracking issue? I'd be happy to send that in. 🙂 |
I have had this problem for the past 2 days. Trying to figure out what is going on. Attention: Using main as a branch won't work. The GitHub workflow would give the following message: npm WARN exec The following package was not found and will be installed: [email protected]
Boilerplate {
path: './boilerplates/site',
contentPath: './boilerplates/site/content'
} That would send me in a whole completely direction! That I couldn't find by searching on google. Look at these errors unaddressed and PR unattended I wonder: Is that repository going to be deprecated? Additionally, sematic-release CLI is not working also. It breaks silently midway through configuration. |
Current behavior
I am getting the following error:
And
And
Expected behavior
It should release successfully.
semantic-release
version^17.4.2
CI environment
Github Actions
Plugins used
semantic-release
configurationpublish-gpr:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
CI logs
The text was updated successfully, but these errors were encountered: