Authenticate by logging in to npm USERNAME is your GitHub username TOKEN is your personal access token $ npm login --registry=https://npm.pkg.github.com > Username: USERNAME > Password: TOKEN > Email: PUBLIC-EMAIL-ADDRESS Edit the package.json file, add publishConfig "publishConfig": { "registry":"https://npm.pkg.github.com" } Edit the package.json file, add repository. The field must match the URL for your GitHub repo. "repository": { "type": "git", "url": "https://github.com/kevbook/node-namespace-matcher.git" } Publish the package $ npm publish