Skip to content

chore: specify git protocol in repository metadata #56

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

Merged

Conversation

ericcrosson-bitgo
Copy link

semantic-release uses the repository url in package.json as its
repositoryUrl setting1.

I believe not specifying the git+ prefix is causing this release
error2:

[2:22:18 PM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
[2:22:18 PM] [semantic-release] [@semantic-release/github] › ℹ  Skip issue creation.
[2:22:18 PM] [semantic-release] › ✖  EGITNOPERMISSION Cannot push to the Git repository.
[2:22:18 PM] [semantic-release] › ✔  Completed step "fail" of plugin "@semantic-release/github"
semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://x-access-token:[secure]@github.com/BitGo/bitcoinjs-lib.git.

This can be caused by:

    * a misconfiguration of the repositoryUrl (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#repositoryurl) option
    * the repository being unavailable
    * or missing push permission for the user configured via the Git credentials on your CI environment (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication)

SemanticReleaseError: Cannot push to the Git repository.

Footnotes

  1. https://semantic-release.gitbook.io/semantic-release/usage/configuration#repositoryurl

  2. https://github.com/BitGo/bitcoinjs-lib/actions/runs/3997126174/jobs/6858073731

semantic-release uses the `repository` url in package.json as its
`repositoryUrl` setting[^1].

I believe not specifying the `git+` prefix is causing this release
error[^2]:

```
[2:22:18 PM] [semantic-release] [@semantic-release/github] › ℹ  Verify GitHub authentication (https://api.github.com)
[2:22:18 PM] [semantic-release] [@semantic-release/github] › ℹ  Skip issue creation.
[2:22:18 PM] [semantic-release] › ✖  EGITNOPERMISSION Cannot push to the Git repository.
[2:22:18 PM] [semantic-release] › ✔  Completed step "fail" of plugin "@semantic-release/github"
semantic-release cannot push the version tag to the branch master on the remote Git repository with URL https://x-access-token:[secure]@github.com/BitGo/bitcoinjs-lib.git.

This can be caused by:

    * a misconfiguration of the repositoryUrl (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/configuration.md#repositoryurl) option
    * the repository being unavailable
    * or missing push permission for the user configured via the Git credentials on your CI environment (https://github.com/semantic-release/semantic-release/blob/master/docs/usage/ci-configuration.md#authentication)

SemanticReleaseError: Cannot push to the Git repository.
```

[^1]: https://semantic-release.gitbook.io/semantic-release/usage/configuration#repositoryurl
[^2]: https://github.com/BitGo/bitcoinjs-lib/actions/runs/3997126174/jobs/6858073731
@ericcrosson-bitgo ericcrosson-bitgo marked this pull request as ready for review January 24, 2023 14:42
@ericcrosson-bitgo ericcrosson-bitgo requested review from davidkaplanbitgo and a team January 24, 2023 14:42
@ericcrosson-bitgo ericcrosson-bitgo merged commit 2d1cbac into master Jan 24, 2023
@ericcrosson-bitgo ericcrosson-bitgo deleted the chore-specify-git-protocol-in-repository-metadata branch January 24, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants