Member-only story
Use GitHub Actions to Automatically Publish a Repo Subfolder as an npm Library
Publish a project subfolder to npm with just a package.json and a GitHub Actions workflow.

Introduction
I’ve said it before, and I’ll say it again, working as a software engineer for a startup is fun and challenging because of the sheer number of different things I get to do on a regular basis.
I work for an Internet of Things startup called Blues which specializes in getting IoT data from devices in the real world into the cloud via cellular. To help show our customers all the possibilities of what they can do with our hardware (Notecards) and our cloud (Notehub), a group of my coworkers and I have been building lots of JavaScript-based web apps to monitor and display IoT data for a variety of different use cases.
A little more about Notecards and Notehub.io
Notecards are low-power, 30mm x 35mm, prepaid cellular-connected devices designed to integrate with any IoT device, and Notecards know, out of the box, how to connect with the Notehub cloud to send as well as receive data from it.
Notehub.io is a cloud-based service for securely connecting to Notecard devices and storing data from them before sending it on to your…