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
fix(repositoryUrl): on beta repositoryUrl needs auth for pre-release flows #1186
fix(repositoryUrl): on beta repositoryUrl needs auth for pre-release flows #1186
Conversation
…sitoryUrl for the pre-release flow
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.
Thanks for the great PR 👍
I'm not sure those changes were necessary. It seems the change is to use the authenticated URL to call My understanding is that if |
Also this commit make the build fail: https://travis-ci.org/semantic-release/semantic-release/builds/541896951?utm_source=github_status&utm_medium=notification |
Let’s revert and then try again |
The build error happens only on Travis though, not locally. |
@pvdlg See: https://git-scm.com/docs/git-ls-remote.html references https://git-scm.com/docs/git-fetch#_git_urls_a_id_urls_a |
Yes but that auth should already be provided one way or another by your CI (ssh key or environment variable or other). How could your CI run |
|
The Where does the Before this PR, the |
Where is this documented?
no it assumed there was a remote named |
🎉 This PR is included in version 16.0.0-beta.20 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What do you mean? In the your CI doc? I don't know. What CI are you using?
I don't know is assumed is the right term here. Every repo on which semantic-release would run is a local clone and calling It seems your CI, for some reason calls |
Here in this repository, no where in the docs does it indict having to call |
I tested semantic-release on something like 20 different CI. All of them set the This is why the doc doesn't say to call It seems your CI behave differently. Again, what CI are you using? |
sure but the repository may not have a
I am using Jenkins |
yes jenkins uses different git authentication, for checkout and for what is available, when you use git binary directly. It even gets more complicated, when the pipeline is running in a docker container, |
I don't know if these changes are connected. But after updating and usage of beta-20 in a existing project I got another error: #1199 |
🎉 This PR is included in version 16.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Fixing issue with authentication for repositoryUrl not being used for prerelease workflow