github
github copied to clipboard
NPM Publish new expected format for repository.url isn't supported by the github plugin
Hello, Part of testing the new beta of semantic-release for publishing with OIDC, I encountered a warning (auto-fixed) from npm:
npm warn publish npm auto-corrected some errors in your package.json when publishing. Please run "npm pkg fix" to address these errors.\n' +
'npm warn publish errors corrected:\n' +
'npm warn publish "repository.url" was normalized to "git+https://github.com/Belphemur/node-json-db.git"\n' +
I fixed that warning with the given command, but now the github plugin isn't able to run it's success part because it can't parse the repository URL.
cf: https://github.com/semantic-release/npm/issues/958#issuecomment-3411996072
Current workaround is to use in case of github the shortcut for repository:
{
"repository": "github:Belphemur/node-json-db",
}