DEV Community

Cover image for Publishing Packages to GitHub with GitHub Actions
tkssharma
tkssharma

Posted on

4

Publishing Packages to GitHub with GitHub Actions

Publishing Packages to Github

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

We are covering about all different package which can be published

'react package publish to github'
'nodejs package publish to github'
'nestjs package publish 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

๐Ÿš€๐Ÿš€ 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

๐Ÿš€๐Ÿš€ Outline Video

00:00 Why do we need a Package
02:00 Things we need for publishing the package
03:30 npm login to login account
04:30 Simple Demo Code setup
05:00 Generating Access Token
05:30 npm login to GitHub npm
07:20 npm run build and publish
08:20 npm publish to publish package
09:00 Using package in another project
09:30 npmrc setup

Image of Timescale

๐Ÿš€ pgai Vectorizer: SQLAlchemy and LiteLLM Make Vector Search Simple

We built pgai Vectorizer to simplify embedding management for AI applicationsโ€”without needing a separate database or complex infrastructure. Since launch, developers have created over 3,000 vectorizers on Timescale Cloud, with many more self-hosted.

Read full post โ†’

Top comments (0)

nextjs tutorial video

Youtube Tutorial Series ๐Ÿ“บ

So you built a Next.js app, but you need a clear view of the entire operation flow to be able to identify performance bottlenecks before you launch. But how do you get started? Get the essentials on tracing for Next.js from @nikolovlazar in this video series ๐Ÿ‘€

Watch the Youtube series