react-use-please-stay icon indicating copy to clipboard operation
react-use-please-stay copied to clipboard

Add Auto Versioning and Publishing to NPM Module Version

Open princefishthrower opened this issue 3 years ago • 6 comments

Looking for someone with experience here in this.

Once automatic tests are built, I would like the following:

  • Incrementally versioning each time there are code changes to the source code AND all the tests pass
  • Increment only when there are changes in true source code, not other things in the repo like the README or interactive site
  • How to define what type of change (major, minor, patch) and send it to such an auto versioning tool? are there tools that can determine this automatically or must they always be specified?

Again, I have 0 experience here. All I know is that I don't want to keep incrementing the version manually each time I write some code 😄

princefishthrower avatar Sep 30 '21 11:09 princefishthrower

@princefishthrower absolutely! semantic-release takes care of what you describe. I have experience using it, but not configuring it, so I guess this could be a valuable learning experience for me as well.

Let me know if I can handle this, I think it can be done in parallel with the automatic tests.

ivanovishado avatar Oct 03 '21 02:10 ivanovishado

@ivanovishado - sounds good! Go for it!

princefishthrower avatar Oct 03 '21 09:10 princefishthrower

@ivanovishado - any update here?

princefishthrower avatar Oct 09 '21 08:10 princefishthrower

@princefishthrower hey, I'll probably have some time to review this tomorrow. I'm expecting to at least open a draft PR.

ivanovishado avatar Oct 10 '21 01:10 ivanovishado

Hey @princefishthrower, sorry for the delay, I had a busy week.

I checked the semantic-release docs and saw that one of the requirements is to have a Continuous Integration service configured. Please let me know if you already have one since I couldn't find it in the project's files.

Here's a list of CI services that may help with this decision. Let me know if you need help to configure these as well. Only after that's configured, we may continue with the semantic-release step.

ivanovishado avatar Oct 10 '21 21:10 ivanovishado

@ivanovishado - thanks for this. I think GitHub Actions would be the easiest, I'll add a simple one shortly, then we can get started.

princefishthrower avatar Oct 12 '21 19:10 princefishthrower