Because I couldn't find many good examples to work from when learning how to do this and in case anyone has feedback on how to do it better, I wrote up a gist of how to deploy a component in a build pipeline.
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.