Skip to content

semantic-release-cli setup could not get repository url #388

@deployn

Description

@deployn

I encountered an error while running the command $ npx semantic-release-cli setup on my project. During the process, I received the following error message: ERR! semantic-release Could not get repository url. Please create/add the repository. even while having a remote repository set up. After investigating further, I realized that the issue was related to the remote repository not being named ‘origin’.

Renaming the remote to ‘origin’ resolved the problem for me.

However, it would be beneficial if the semantic-release-cli tool could analyze other remotes as well, or if the error message could provide more specific information about the cause of the issue such as ERR! semantic-release Could not get repository URL. Please create/add the repository as the remote named ‘origin’.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions