- In package.json and README.md, replace
ownernameandmodule-namewith your own. - Based on this repository,
ownernameiscatsmiaowandmodule-nameisnode-github-packages - Do not delete
@
npm run releaseSee np
https://github.com/ownername/module-name/packages
- The
npm loginpassword is thePersonal access tokens (PAT)value, not the Github account information. - Create a token by adding
repoandread:packagespermissions 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