There are lots of great blog posts and instructional examples on how to build packages and push them to npm or GitHub Packages.