NPM is Case Sensitive. GitHub isn't!

While preparing a package for font ranges, I've been copying the values from the URL bar which had https://github.com/levischuck/tiny-packages/ and this stumbled me for a while when setting up NPM's OIDC trusted publisher settings.

Instead of copying from my other packages, I had manually typed levischuckfor the Organization or user field. This was a mistake.

A screenshot of NPM showing the trusted publisher is tied to levischuck/tiny-packages.

In your GitHub action, you may see text like...

publish-packages.log

This indicates that the GITHUB_TOKEN is not authorized to publish to this NPM repository.

The fix is to set NPM's trusted publisher correctly with the correct casing, which in my case was LeviSchuck.