Package Publishing Reading & Resources

I have big plans in the works to overhaul a few projects and, to prep for that, I’ve been doing a lot of reading up on different approaches to publishing JavaScript packages. These are a few resources I’ve found particularly useful and informative.


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Lauren Ashpole

I have big plans in the works to overhaul a few projects and, to prep for that, I’ve been doing a lot of reading up on different approaches to publishing JavaScript packages. These are a few resources I’ve found particularly useful and informative.

  • How to Publish an Updated Version of an npm Package – Cloud Four - I’ve used different tools to automate releases in the past but had no idea what they were doing under the hood. This article walks through creating a release and publishing to npm and Git with detailed explanations at every step. It’s a great starting point since understanding the manual process makes evaluating different automated strategies a lot easier.
  • Automate npm publishing with GitHub Actions, proper changelog, and release notes - I'm looking for a solution that includes independently versioned monorepos so this guide isn't a perfect fit. However, using GitHub Actions to manually trigger a release and enter the correct version bump (major, minor, patch, etc.) is a really clever approach.
  • Release Workflow | Yarn - Package Manager - Yarn's release workflow for monorepos is an experimental feature so I’m holding off for now but I hope it pans out. The section on deferred versioning and record keeping is especially intriguing.
  • Tools! Trying to figure out which of these options would best serve my needs:
    • semantic-release - My current tool of choice. semantic-release depends on commit messages that follow Angular's commit message conventions for versioning. Unfortunately, it doesn't play nice with monorepos (for more details, here's a little extra credit reading The chronicles of semantic-release and monorepos).
    • Auto - Intuit - Automates releases based on pull request labels. I used this at a previous job and appreciated that it didn't require linting commit messages or any extra effort from contributors. The downside, Lerna is a must for use with monorepos.
    • Release It! - This seems promising. A CLI tool that can be used in interactive or continuous integration mode. The big appeal for me is a Yarn workspaces specific plugin.

Finally, recommendations are welcome so here’s my brief. I want to combine multiple packages that currently live in separate repos into a single monorepo using Yarn workspaces. Ideally, I’d like to independently version the packages without adding Lerna and use GitHub Actions for CI/CD. If you have a similar setup, let me know what's worked for you.

Cover photo by Patrick Tomasso on Unsplash.


This content originally appeared on DEV Community 👩‍💻👨‍💻 and was authored by Lauren Ashpole


Print Share Comment Cite Upload Translate Updates
APA

Lauren Ashpole | Sciencx (2023-01-18T00:43:29+00:00) Package Publishing Reading & Resources. Retrieved from https://www.scien.cx/2023/01/18/package-publishing-reading-resources/

MLA
" » Package Publishing Reading & Resources." Lauren Ashpole | Sciencx - Wednesday January 18, 2023, https://www.scien.cx/2023/01/18/package-publishing-reading-resources/
HARVARD
Lauren Ashpole | Sciencx Wednesday January 18, 2023 » Package Publishing Reading & Resources., viewed ,<https://www.scien.cx/2023/01/18/package-publishing-reading-resources/>
VANCOUVER
Lauren Ashpole | Sciencx - » Package Publishing Reading & Resources. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2023/01/18/package-publishing-reading-resources/
CHICAGO
" » Package Publishing Reading & Resources." Lauren Ashpole | Sciencx - Accessed . https://www.scien.cx/2023/01/18/package-publishing-reading-resources/
IEEE
" » Package Publishing Reading & Resources." Lauren Ashpole | Sciencx [Online]. Available: https://www.scien.cx/2023/01/18/package-publishing-reading-resources/. [Accessed: ]
rf:citation
» Package Publishing Reading & Resources | Lauren Ashpole | Sciencx | https://www.scien.cx/2023/01/18/package-publishing-reading-resources/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.