- Create a dedicated branch:
release-<version>
(e.g.release-0.2.0
) - Check the changes since the last release by
comparing the heads,
add anything relevant to
CHANGELOG.md
, and update the version heading and unreleased heading inCHANGELOG.md
. - Open a PR for the new release, like #10
- When merged, create a tag of the form
v0.2.0
on the merge commit and push it:git push origin v0.2.0
- Create the release on GitHub, selecting the tag created above.
- Add the relevant changelog section to the release notes.
- Obtain the sha256 for the release archive, by downloading the blob,
and calling
sha256sum
on it. - Update the release notes with a workspace setup section for the new version, such as this example
- Add the new version to the Bazel Central Registry as described below
- Follow the instructions given in the README to add a new version
of this module. Use the following input file to
add_module.py
for reference - don't forget to update the version and dependencies:{ "build_file": null, "build_targets": [], "compatibility_level": "0", "deps": [["bazel_skylib", "1.0.3"], ["platforms", "0.0.4"]], "module_dot_bazel": "path/to/rules_sh/MODULE.bazel", "name": "rules_sh", "patch_strip": 1, "patches": [], "presubmit_yml": "path/to/rules_sh/.bazelci/presubmit.yml", "strip_prefix": "rules_sh-0.2.0", "test_targets": [], "url": "https://github.com/tweag/rules_sh/archive/refs/tags/v0.2.0.tar.gz", "version": "0.2.0" }