April 2023: Automate Publishing npm Packages with a GitHub Actions Workflow
Whether you want to hear about hot new open source software, or contribute more to the community yourself, this newsletter's for you.
Hey friends,
Here in the southeastern United States it’s finally starting to warm up and feel spring-like here, and hopefully it’s going to stay that way this time - we’ve had a few teases of spring before now, but then the temps dip again.
Anyway, I’ve got some cool things to share with you this month: I joined the LogRocket podcast as their newest co-host, and wrote a couple of blogs on how to automate publishing a package to npm and how ESLint can make you a better JavaScript developer. Here we go!
This month I joined the PodRocket team and interviewed Sunil Pai, a former React core team member, who’s now building OSS collaboration software PartyKit.
If you’ve followed me for any length of time, you know I’ve had the privilege of being a guest on the LogRocket podcast PodRocket on more than one occasion, but now I’m happy to announce I’m a co-host for them as well!
And I had the pleasure of speaking to Sunil Pai, who’s had a storied career working for Meta and Cloudflare among others, and is now an indie developer building open source collaboration platform PartyKit.
If you’ve ever tried to build a collaborative web app you probably know the pain of web sockets, latency, and scaling up the system. Well, Sunil is aiming to fix all of this with PartyKit so you can focus on the app and his platform can handle the collaboration part for you.
It was a very fun and interesting interview, and I recommend keeping an eye on him and PartyKit.
If getting into open source software is something that piques your interest, you might like my latest blog post about using GitHub Actions to automatically publish a package to npm.
GitHub Actions truly made automated continuous integration / continuous deployment (CI/CD) pipelines a heck of a lot easier than it used to be, and earlier this year, when I was building my first open source software package Notehub JS, I used the workflows in a myriad of ways.
One really interesting thing I learned was how to use a GitHub Actions workflow to publish a subfolder of my repo to npm every time a new release is cut.
With just a few minor additions to the main repo’s package.json
file and a GitHub Actions workflow, the whole process of publishing a new version of the package to npm can be automated.
I hope you find it useful.
And even though it’s been a few years since I wrote it, ESLint has made (and continues to make) me a better JavaScript developer, and it can make you one too.
Every time I start to feel like I’m getting the hang of coding and JavaScript language, something new comes along to prove there’s always more to learn.
Adding ESLint to a React project I’d built as a learning exercise opened my eyes to a whole host of things I could write in a better way, and in the process, has made me a better developer overall.
If you’d like some examples of how ESLint can help you become a better developer too, give it a read.
I hope you enjoyed this month’s edition of “Paige Codes.” Please share with your friends if you did.
See you again at the end of May,
- Paige
Not subscribed yet? No worries.
I send a free email every month or so. You can check out my archive, or sign up below: