next-auth-mock icon indicating copy to clipboard operation
next-auth-mock copied to clipboard

Automate release process

Open emiliosheinz opened this issue 1 year ago • 3 comments

I was wondering if it wouldn't be good if we automate the release process (generate tags, releases, changelogs and publish to npm).

For example, the latest release published to npm has no release or tag in GitHub.

After some research I've found that the most used libraries for this kind of use case are:

  • Google Release Please: Maintained by Google it keeps an opened pull request that you can merge when you want to release a new version. It seems to work well with a simple branch structure like the one that we have here.
  • Semantic Release: I've been using this one on a personal project and it seems pretty flexible. The main pro that I can see is that it keeps track of your changelog and version always based on your latest release on GitHub and not based on some local files.
  • Auto: It is used by Storybook in their Addon Kit template, it seems to be a good fit for our use case.

All the options above would require the usage of Conventional Commits.

What do you think about it?

emiliosheinz avatar Dec 29 '22 12:12 emiliosheinz