package.json
file- Check
name
property. It must to be like@USER/project-name
- Add
publishConfig
andregistry
property with value corresponding to the github registry for your user account
- Check
.npmrc
file- create if it doesn't exist
- specify username, registry path and authToken
npm
commands
npm login
npm publish
.npmrc
file- create if it doesn't exist
- specify
@USERNAME:registry=https://npm.pkg.github.com
- specify
//npm.pkg.github.com/:_authToken=GITHUB_TOKEN
npm i @USERNAME/package-name