Skip to content

fix: add repository field so npm provenance passes#51

Merged
techiejd merged 1 commit intomainfrom
fix/repository-field-for-provenance
Apr 21, 2026
Merged

fix: add repository field so npm provenance passes#51
techiejd merged 1 commit intomainfrom
fix/repository-field-for-provenance

Conversation

@techiejd
Copy link
Copy Markdown
Owner

Summary

  • The previous release attempt (after ci: upgrade npm in release.yml so Trusted Publishing works #50) authenticated successfully via Trusted Publishing (good — npm upgrade worked!) but then failed with E422 on all three packages:

    Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "", expected to match "https://github.com/techiejd/payloadcms-vectorize\" from provenance

  • None of the three package.json files had a repository field. With NPM_CONFIG_PROVENANCE=true, npm requires it and must match the signed provenance.
  • Adds repository, homepage, and bugs to the root package and both adapters (each adapter sets directory for a monorepo-aware link on npmjs.com).

Test plan

  • Merge this PR
  • release.yml fires, no pending changesets, runs changeset publish
  • All three packages publish successfully at 0.7.2

npm publish with provenance (sigstore) fails with E422 when package.json
has no repository.url — it must match the GitHub repo recorded in the
provenance bundle. Adds repository/homepage/bugs to the root package and
both adapters.
@techiejd techiejd merged commit eaa6494 into main Apr 21, 2026
6 checks passed
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.

1 participant