-
Notifications
You must be signed in to change notification settings - Fork 140
Closed
Labels
Description
Since the introduction of #886 in v10.1.5 the repositoryUrl vs clone_url check seems to have false positives.
We use the release as part of a monorepo, so it probably fetches the repo URL from the .git as the multiple package.json do not have the repo url in it in our case.
Details below, just adjusted host + repo. The https://[secure]@ part is 1:1 from the log and probably the reason why it detects the false positive.
[11:28:36 AM] [semantic-release] › ✘ EMISMATCHGITHUBURL The git repository URL mismatches the GitHub URL.
The semantic-release repositoryUrl option must have the same repository name and owner as the GitHub repo.
Your configuration for the repositoryUrl option is https://[secure]@github.example.com/org/repo.git and the clone_url of your GitHub repo is https://github.example.com/org/repo.git.
By default the repositoryUrl option is retrieved from the repository property of your package.json or the git origin url (https://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes) of the repository cloned by your CI environment.
Note: If you have recently changed your GitHub repository name or owner, update the value in semantic-release repositoryUrl option and the repository property of your package.json respectively to match the new GitHub URL.
AggregateError:
SemanticReleaseError: The git repository URL mismatches the GitHub URL.
....
The plugin loading does not seem to allow to enforce an older version ?
Had to manually adjust the packages after install to workaround the issue for now.
Would be nice to ignore the user section before the host in some fix.
Thanks