Skip to content

Conversation

@ibrahimcesar
Copy link
Owner

When publishing to GitHub Packages with the --provenance flag, npm requires explicitly setting --access public. This fixes the npm publish error: "Can't generate provenance for new or private package, you must set access to public"

Changes:

  • Added --access public flag to auto-release.yml GitHub Packages publish step
  • Added --access public flag to release.yml GitHub Packages publish step
  • Added clarifying comment about the requirement

This ensures SLSA provenance generation works correctly for GitHub Packages.

When publishing to GitHub Packages with the --provenance flag, npm requires
explicitly setting --access public. This fixes the npm publish error:
"Can't generate provenance for new or private package, you must set access to public"

Changes:
- Added --access public flag to auto-release.yml GitHub Packages publish step
- Added --access public flag to release.yml GitHub Packages publish step
- Added clarifying comment about the requirement

This ensures SLSA provenance generation works correctly for GitHub Packages.
@ibrahimcesar ibrahimcesar merged commit b9e1663 into main Nov 15, 2025
5 checks passed
@github-actions
Copy link
Contributor

size-limit report 📦

Path Size
ES Module 2.88 KB (0%)
CommonJS 2.84 KB (0%)
CSS 1.05 KB (0%)

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.

3 participants