Skip to content

fix: add repository metadata for npm provenance - #13

Merged
M-kasinski merged 1 commit into
mainfrom
fix/package-repository-provenance
Jul 16, 2026
Merged

fix: add repository metadata for npm provenance#13
M-kasinski merged 1 commit into
mainfrom
fix/package-repository-provenance

Conversation

@M-kasinski

Copy link
Copy Markdown
Collaborator

What

Add repository, homepage and bugs fields to package.json.

Why

With OIDC trusted publishing, npm generates a provenance statement and rejects the publish unless package.json repository.url matches the source repo:

npm error code E422
Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/Qwant/answer-node" from provenance

repository was missing entirely, so the value resolved to "" and provenance verification failed — the last thing blocking the publish (the tarball built and the provenance was signed; only this validation failed).

After merge

The release should finally publish 1.0.0 to npm with provenance.

Note: the v1.0.0 git tag from the previous failed run must be removed first (it was pushed even though nothing published), otherwise semantic-release will think 1.0.0 already shipped.

🤖 Generated with Claude Code

Trusted publishing (OIDC) generates a provenance statement and npm
rejects the publish (E422) unless package.json `repository.url` matches
the source repo. The field was missing, so `repository.url` resolved to
"" and provenance verification failed.

Add repository, homepage and bugs pointing to Qwant/answer-node.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@M-kasinski
M-kasinski merged commit 590dbb9 into main Jul 16, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant