Publishing packages to GitHub feeds

I’m following the documentation on creating a GitHub Action that publishes a package to a GitHub package feed, but it doesn’t seem to work. Specifically, it seems to ignore the registry configuration, and tries to publish to My publish.yaml file is here:
Does anyone know how to make this work?

I was only allowed to put one link in my post, so here is the documentation I’m trying to follow:

The issue for me turned out to be that I didn’t include the scope in my package name in the package.json (e.g. @ryantrem/test-package). The docs very briefly mention this, but not in a way that made it sound like a requirement.