web_development:github-packages

GitHub packages

https://docs.npmjs.com/creating-and-publishing-scoped-public-packages

https://zellwk.com/blog/publish-to-npm/

other resources:
https://docs.github.com/en/free-pro-team@latest/packages
https://docs.github.com/en/free-pro-team@latest/packages/publishing-and-managing-packages/publishing-a-package
https://docs.github.com/en/free-pro-team@latest/packages/publishing-and-managing-packages/about-github-packages

https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token
https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token

https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/authorizing-a-personal-access-token-for-use-with-saml-single-sign-on

https://stackoverflow.com/questions/58919401/installing-packages-from-github-npm-registry-auth-error-401

BEST:
https://stackoverflow.com/questions/59060542/cannot-install-npm-package-in-github-registry

https://docs.github.com/en/packages/guides/configuring-npm-for-use-with-github-packages

// 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
mkdir adobe-analytics
cd adobe-analytics
git init

npm init --scope=@namespace

npm publish --access public
//registry.npmjs.org/:_authToken=<token>
//npm.pkg.github.com/:_authToken=<token>
@myorg1:registry=https://npm.pkg.github.com
@myorg2:registry=https://registry.npmjs.org




github personal access token
754b49a3af9f9a61da22d5d8d3e2c3cc964f47d2



npm login PAT
9e4d8890-61b4-490f-b540-9121ada5b8dd
  • web_development/github-packages.txt
  • Last modified: 2021/01/27 20:20
  • by jimboobrien