github icon indicating copy to clipboard operation
github copied to clipboard

NPM Publish new expected format for repository.url isn't supported by the github plugin

Open Belphemur opened this issue 3 months ago • 1 comments

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

Belphemur avatar Oct 16 '25 17:10 Belphemur

Current workaround is to use in case of github the shortcut for repository:

{
  "repository": "github:Belphemur/node-json-db",
}

Belphemur avatar Oct 20 '25 15:10 Belphemur