Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase automation of release job #364

Closed
ctreatma opened this issue Oct 12, 2023 · 2 comments · Fixed by #471
Closed

Increase automation of release job #364

ctreatma opened this issue Oct 12, 2023 · 2 comments · Fixed by #471
Labels
enhancement New feature or request

Comments

@ctreatma
Copy link
Contributor

What problem are you facing?

At the moment, the release process for metal-cli is fairly manual:

  • Look at the <previous> release version
  • Look at the commits to main since the previous release
  • Decide on the <next> release version
  • Create a tag on main in the format v<next>
  • Push the tag to GitHub if it was created locally
  • Tag creation triggers a GitHub workflow that runs goreleaser

Now that we are ensuring that the commit log has Conventional Commits tags, we could move all of these steps into the release job so that releasing this CLI is just a matter of pushing a button and letting GitHub Actions handle all of the details.

@ctreatma ctreatma added the enhancement New feature or request label Oct 12, 2023
@ctreatma
Copy link
Contributor Author

Similar work has been done for other projects where we use Conventional Commits:

In both of those cases, we used https://github.com/cycjimmy/semantic-release-action to drive the release process; that requires adding a .releaserc.json to the project root that configures the necessary release steps.

In this repo, we use goreleaser, which builds the CLI and creates the GitHub release. We may need some investigation to see how to integrate semantic-release-action with goreleaser.

Copy link

This issue has been resolved in version 0.23.1 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant