- In package.json and README.md, replace
ownername
andmodule-name
with your own. - Based on this repository,
ownername
iscatsmiaow
andmodule-name
isnode-github-packages
- Do not delete
@
npm run release
See np
https://github.com/ownername/module-name/packages
- The
npm login
password is thePersonal access tokens (PAT)
value, not the Github account information. - Create a token by adding
repo
andread:packages
permissions at https://github.com/settings/tokens
npm login --registry=https://npm.pkg.github.com --scope=@ownername
npm install @ownername/module-name
# From the path where you checkouted the package
npm link
# In the project path to import the package
npm link @ownername/module-name