Can't push a package to Github

I’m trying setup Github Packages for a NPM project but I’m running into some issues…

I have a repo under a specific org:
This repo is private


The code in themy-orgname/my-repo-name repo contains a NPM module.

package.json in project

  "name": "@my-orgname/my-repo-name",
  "version": "1.0.0",
  "description": ".....",
  "publishConfig": {
    "registry": ""
  "repository": {
    "type": "git",
    "url": ""

.npmrc in project folder

~/.npmrc file


From within the project folder…
npm publish

Results In

npm ERR! 404 Not Found - PUT - The expected resource was not found.
npm ERR! 404 
npm ERR! 404  '@my-orgname/my-repo-name@1.0.0' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

Someone on SO mentioned that repos can’t have the same name as the package? Is this true?

The code residing in repo called my-org/lib,
can’t have @my-org/lib as it’s name property in package.json?