-
Notifications
You must be signed in to change notification settings - Fork 15
Release Guide
The goal of this guide is to help you create a new log-cache-cli public release. Please free to suggest changes based on your experience with this guide.
Releases are currently published on a best-effort cadence.
Contributors with write access may cut releases as-needed to fix bugs, bump dependencies for stability, or introduce new features. The ultimate goal is to make a new version of the log-cache cf CLI plugin available for download from this repo or as a community plugin download.
💡 Each change is made from the
main
branch.
Check if the code is in a good state.
- Go to the main branch and see that it passed the relevant Github Action workflows (ie. linting, testing), it should be represented as a green check next to the commit SHA.
- Clone the repo and run any steps that you feel are required to ensure that the plugin is in a good state. Typically, this should involve building and installing the plugin, as well as testing it against a cf-d environment.
Decide on a version number for the new release.
- Take note of the version number of last release (ie. 4.0.3).
- Review the changes made since the last release.
- Decide whether this should be a major, minor, or patch release according to semantic versioning.
- Figure out your new version by incrementing the version of the last release by a
- major (ie. 4.0.3 -> 5.0.0),
- minor (ie. 4.0.3 -> 4.1.0),
- or patch (ie. 4.0.3 -> 4.0.4).
💡 Please visit the semver webpage if you aren't familiar with semantic versioning.
Generate binaries for macOS, Linux, and Windows, and cut a draft release with them.
- Go to the "Release from main" Github action view.
- Select "Run workflow", and enter your new release's version number (Note: please omit the semver "v" prefix here*).
- Wait for the workflow to succeed. Take appropriate action if it fails.
Publish the release.
- Go to the log-cache-cli releases page.
- Locate your draft release at the top and hit the edit icon.
- Edit the release notes for clarity.
- Hit publish release 🎉 .
Update the community plugin repo in order for users to be able to easily install your release (without having to download the binary from this repo) via cf install-plugin log-cache
.
- Follow the steps in the repo's README to create a PR updating the log-cache-cli version listed.