Skip to content
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

An error occurred while running semantic-release: TypeError: Cannot read properties of undefined (reading 'name') #2421

Closed
M-Scott-Lassiter opened this issue Apr 18, 2022 · 1 comment

Comments

@M-Scott-Lassiter
Copy link

Current behavior

The testing step passes, but the publish step fails at "Run npx semantic release". Getting error:

[5:46:36 PM] [semantic-release] › ✖  Failed step "fail" of plugin "@semantic-release/github"
[5:46:36 PM] [semantic-release] › ✖  An error occurred while running semantic-release: TypeError: Cannot read properties of undefined (reading 'name')

Expected behavior

Expect version increment, git tag, and NPM publish.

Separately publishing using the NPM_TOKEN was successful, perhaps issue is GitHub authentication related?

Question also asked on StackOverflow: https://stackoverflow.com/questions/71896623/semantic-release-fails-on-github-authentication-failed-step-fail-of-plugin

Environment

@M-Scott-Lassiter
Copy link
Author

Solved by changing "master" to "main" in the configuration. Duplicate of issue #2214.

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

No branches or pull requests

1 participant