go-tfe can be released as often as required. Documentation updates and test fixes that only touch test files don't require a release or tag. You can just merge these changes into main
once they have been approved.
Start by comparing the main branch with the last release in order to fully understand which changes are being released. Compare the last release tag with main (example). For each meaningful change, double check the following:
- Is the change added to CHANGELOG.md?
- Does the public package API follow all endpoint conventions, such as naming, pointer usage, and options availability? Once these are released, they are permanent in the current major release version.
- Are new features generally available in the HCP Terraform API? Or is there another considered reason to release them?
Steps to prepare the changelog for a new release:
- Replace
# Unreleased
with the version you are releasing. - Ensure there is a line with
# Unreleased
at the top of the changelog for future changes. Ideally we don't ask authors to add this line; this will make it clear where they should add their changelog entry. - Ensure that each existing changelog entry for the new release has the author(s) attributed and a pull request linked, i.e
- Some new feature/bugfix by @some-github-user (#3)[link-to-pull-request]
- Open a pull request with these changes titled
vX.XX.XX Changelog
. Once approved and merged, you can go ahead and create the release.
-
Create a new release in GitHub by clicking on "Releases" and then "Draft a new release"
-
Set the
Tag version
to a new tag, using Semantic Versioning as a guideline. -
Set the
Target
asmain
. -
Set the
Release title
to the tag you created,vX.Y.Z
-
Use the description section to describe why you're releasing and what changes you've made. You should include links to merged PRs. Use the following headers in the description of your release:
- BREAKING CHANGES: Use this for any changes that aren't backwards compatible. Include details on how to handle these changes.
- FEATURES: Use this for any large new features added,
- ENHANCEMENTS: Use this for smaller new features added
- BUG FIXES: Use this for any bugs that were fixed.
- NOTES: Use this section if you need to include any additional notes on things like upgrading, upcoming deprecations, or any other information you might want to highlight.
Markdown example:
ENHANCEMENTS * Add description of new small feature by @some-github-user (#3)[link-to-pull-request] BUG FIXES * Fix description of a bug by @some-github-user (#2)[link-to-pull-request] * Fix description of another bug by @some-github-user (#1)[link-to-pull-request]
-
Don't attach any binaries. The zip and tar.gz assets are automatically created and attached after you publish your release.
-
Click "Publish release" to save and publish your release.