Consume private GitHub packages in develop / CI environment
If you or your team like to use private npm packages service, Github packages is a popular choise, here this how to consume it
Get a Token
Go to setting and find personal access tokens

Add permission to token: tick read: packages, or if it is necessary, tick write

Add config to npm
Open ~/.npmrc add token and name
always-auth=true
//npm.pkg.github.com/:_authToken=xxxx
@your-company:registry=https://npm.pkg.github.com`
Or command line for CI enviroment
npm config set always-auth truenpm config set //npm.pkg.github.com/:_authToken xxxxxxxxnpm config set @your-compnay:registry https://npm.pkg.github.com
That shall do it :)