Skip to content

Commit

Permalink
Fix the repository URL in the package.json file for pdfjs-dist
Browse files Browse the repository at this point in the history
For provenance, enabled in PR #18352, to work the repository URL in
`package.json` is required to match the repository URL of the GitHub
Actions invocation. This should fix the following error we encountered
publishing a new release today:

```
npm error 422 Unprocessable Entity - PUT https://registry.npmjs.org/pdfjs-dist - Error verifying sigstore provenance bundle: Failed to validate repository information: package.json: "repository.url" is "git+https://github.com/mozilla/pdfjs-dist.git", expected to match "https://github.com/mozilla/pdf.js" from provenance
```
  • Loading branch information
timvandermeij committed Jul 1, 2024
1 parent 7114796 commit bf5dd7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2226,7 +2226,7 @@ function packageJson() {
},
repository: {
type: "git",
url: `git+${DIST_REPO_URL}.git`,
url: `git+https://github.com/mozilla/pdf.js.git`,
},
engines: {
node: ">=18",
Expand Down

0 comments on commit bf5dd7e

Please sign in to comment.