Create React NPM Package Building and Publishing Tutorial 🔥 #02

How to Publish Private NPM Packages With Github Package Registry
Build and Publish Your Own NPM Package in 5 Minutes :)
In this playlist, we are talking about publishing different types of packages to GitHub

PlalyList Link
https://www.youtube.com/watch?v=lVze5eT5DQQ&list=PLIGDNOJWiL18ucL7WGWeVjXmSzOVTRObE
GitHub Link
https://github.com/tkssharma/publish-packages

🚀 Publish Node JS Utility Package to GitHub
🚀 Publish React JS Component Package to GitHub
🚀 Publish React JS Component and deploy using CI GitHub Actions to GitHub
🚀 Publish Nest JS Utility Package to GitHub
🚀 Publish Nest JS Dynamic Package to GitHub

🚀🚀 Outline Video

00:00 Publish NPM package to GitHub
01:20 Publish the package to NPM, Github, and Gitlab
05:00 Setting up Repo
08:30 Setting up package JSON and config
10:00 Create Library Counter Component
15:00 eslintrc and prettier setup
20:00 setting up tests for component jest
23:00 Adding common support for package
26:00 updating npm scripts for build, test, and publish
29:00 NPM Login and npm publish

🚀🚀 How to Publish Private NPM Packages With Github Package Registry

We'll begin by first making our modules repository private.
Publishing private NPM packages using GitHub Package Registry involves several steps to configure your package and authenticate with GitHub. Here's a step-by-step guide:

🚀🚀 Prerequisites
Node.js and npm: Make sure you have Node.js and npm installed.
GitHub Account: Ensure you have a GitHub account and a repository where you want to host the package.
Repository Permissions: Ensure you have the necessary permissions to publish to the GitHub repository.

🚀🚀We will follow these steps

- Create a GitHub Personal Access Token
- Authenticating With NPM Using the GitHub Registry
- Publish Your Package
- Using Your Private Package in Another Project

Comments