DEV Community

Discussion on: How to Create and Publish a React Component Library

Collapse
 
abhinavanshul profile image
abhinav anshul

Amazing article,however I'm stuck into an issue here
when I try to install the package, it says not found (it is a public repo), neither its available on the npmjs website.

I've written down about my problem here too : stackoverflow.com/questions/706391...

Collapse
 
bhatvikrant profile image
Vikrant Bhat

I am facing the same issue, did you stumble upon a way to publish to NPM as well?

Collapse
 
gavinsykes profile image
Gavin Sykes

It looks like you can only really do one or the other at a time, I'm yet to give this a go but this article seems to cover it - sevic.dev/npm-publish-github-actions/

Collapse
 
ppulwey profile image
Patrick Pulwey

I've wrote a sample lib and some instructions based on this tutorial, with a quick introductions how to publish to npm. The steps are almost the same. You can find it here: github.com/ppulwey/remake-lib#publish

Collapse
 
alexeagleson profile image
Alex Eagleson

This tutorial is specifically for publishing a package on Github, I would imagine you could probably publish a public package to npmjs.com as well but I've never personally done that before so I'm not sure the exact steps to follow.

If you figure it out and share I'd be happy to update the tutorial

Cheers

Some comments have been hidden by the post's author - find out more