github-packages-demo
GitHub packages demo
Usage
Create .npmrc
file in your project
registry=https://npm.pkg.github.com/
Install the package:
npm install @taroalan/[email protected] --save
How to publish a package
Step 1: Use publishConfig
option in your package.json
{
"publishConfig": {
"registry": "https://npm.pkg.github.com/"
}
}
Step 2: Authenticate
npm login --registry=https://npm.pkg.github.com/
Step 3: Publish
npm publish