-
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
feat: add main branch to default release branch config #1737
feat: add main branch to default release branch config #1737
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 👍
You might want to add |
That's a good idea, PR welcome! I'd document it in the usage docs and then reference it from the README? |
We've just opened one pull request to document it in @timfisher fork timfisher#1 |
I added @otorrillas docs looks like we need a maintainer to approve running the workflow now |
@gr2m would you mind having a look now that it includes a docs update? 😄 thank you! |
Friendly ping :) would be great to get this merged! |
@timfisher @styfle second friendly ping - with what can we contribute to make this change move forward? |
I want us to finish the transition to ES Modules first: #2133. Once we have that, this issue is high on my priority. It will take a while to thoroughly test it. |
I think this might be preferable so as to support both:
Note that |
It seems like there's still more work to be done on the ES module conversion. Can we please get this merged in the interim? I'd argue it's already being sufficiently tested considering how many repositories are already using this configuration. |
@travi @gr2m Is this something that can maybe be merged? We've been dealing with this nonsense for literal years now. While I completely understand that you might have no time for a migration to ESM, it is incredibly frustrating that a package so central to my publishing workflow does not work with the default branch of my chosen VCS. |
I hear you and agree. My life situation doesn't leave much time for semantic-release righ now, but this is my top priority as well. I'll talk to @travi about it this Friday, if anyone is interested in taking the lead on getting this feature shipped, please let us know. Really sorry about how long this takes, it frustrates me in my own usage of semantic-release as well. |
so sorry that it has taken so long to get this moving forward. this is a change that is important to us, so i'm hoping we can get this merged soon. thanks a ton for all the work you put into this @timfisher, especially going beyond the functional change and tracking down the details throughout the docs to update along with it. would you be willing to update this branch with the latest changes? i think this looks like it should get us to the point of getting it merged |
Sure mate I will update this weekend 👍 |
19d0069
to
44c92a2
Compare
Co-authored-by: Andrei Danilov <andreialexandr.danilov@gmail.com>
44c92a2
to
524a1b1
Compare
@travi Should be good now 👍 Some CLI tests still reference master so I didn't know whether to duplicate them or not. I left them out. Thanks all. |
🎉 This PR is included in version 23.1.0-beta.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
released to the beta channel to start with. would appreciate feedback from folks following this thread in case this introduces any surprises. hoping to promote to stable within a week or so, so feedback from folks that have tried it out would help with confidence for promoting. |
Awesome, I’m update my packages and see if anything breaks. |
wohoo looks good when testing it locally! I'll test it in production as soon as the next opportunity arises. Thank you all for seeing this through ❤️ |
First test in production: success |
PR to promote to stable: #3300 |
feat: add main branch to default release branch config (#1737)
🎉 This PR is included in version 23.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
I had a confusing error message saying 1 to 3 branches were required when I had the following config:
[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.
Although the config is incorrect adding main to the default config/ error message would help people in a similar situation who have missing config or incorrect config and a default main branch provided with github