Wow, that title is a mouthful! Today, I wanted to share the GitHub Action I built to automatically create a new release for Kelp whenever I update the version number in the Let's dig in! (Don't want to read all of those. Grab the GitHub Action script here.) Automate the boring stuff!Every time I add a new feature to Kelp, my UI library for people who love HTML, I have complete a series of steps…
I know from past experience that I often forget one or more of those last few steps. I'll forget to create a release note on GitHub, or forget to push to NPM. Then someone opens a GitHub issue asking me to fix it so they can grab the latest version of the code. It's the perfect set of tasks to automate (I already automate testing when a PR is opened). My preferred workflowWhen code is pushed to
That seems like it should be easy, but finding the right combination of tools was annoying difficult! Common workflowsMost popular libraries I looked at used something like Release Drafter to create a draft release, which they would then manually publish when ready. By default, Release Drafter looking for version tags on each PR ( I think this kind of flow caters well to big projects like Bootstrap that will release a bunch of stuff all at once. For my libraries, I prefer to release lots of small updates frequently. I'm a big fan of shipping small updates early-and-often. I'm also not great at remembering to tag PRs with version categories, and frankly, I want to manually control that in the And most NPM release scripts I found rely on the tag update. When a new tag is published, it grabs that tag and pushes a new NPM release with that as the version number. In most scripts I found, the DIY it!I didn't fork or modify any of these existing tools. But I did dig deeper into their configurations to get a setup that worked better for me.
Now, any time the If you use this script…There are a few things you need to know.
Both of those tokens get saved in your repository's "Secrets" section in settings. You can download the GitHub Action to use yourself here. If you have any questions about all this, let me know! Like this? A Go Make Things membership is the best way to support my work and help me create more free content. Cheers, Want to share this with others or read it later? View it in a browser. |
Beranda » Tanpa Label » [Go Make Things] How to automatically create a new release and publish to NPM whenever package.json is updated using a GitHub Action
Related Post:
- Third Quarter 2024 Average Air Fare Decreases 4.6% from Second Quarter 2024
- Customer Community Platform vs. Social Media
- “Knock, knock…who’s there?” 🤪 Laughter the Best Medicine!
- Take Your Home from Builder-Grade to Custom-Made with Our All-New Book!
- Packing Cubes From $7 | $44 Tablet | 50% off Domino's Pizza
0 Komentar untuk "[Go Make Things] How to automatically create a new release and publish to NPM whenever package.json is updated using a GitHub Action"