[BUG] Package visibility fails on GH packages with provenance #6436
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When publishing with --provenance to Github Package registry, and the package does not already exist (ie first version being published), the publish call will fail with the following error:
Expected Behavior
Publish should work and
--provenance
ignored as it is on the subsequent publish when the version already exists.Its failing at this line: https://github.com/npm/cli/blob/bdab631b9847013dc4e8d4083669acf6c7bfb457/workspaces/libnpmpublish/lib/publish.js#LL181C86-L181C86
Presumably we just need to catch 404s and ignore them?
Steps To Reproduce
Publish to GH packages with provenance
Environment
The text was updated successfully, but these errors were encountered: