Follow these steps to release a new version of latformOS Check:
-
Versioning: Refer to the Semantic Versioning page to determine the appropriate version number for the new release based on the changes made.
-
Update Version: Update the version number in the
lib/platformos_check/version.rb
file. Also, replace thePLATFORMOS_CHECK_VERSION
placeholder in the documentation for any new rules. Use the following command to automate these updates:VERSION="X.X.X" rake prerelease[$VERSION]
-
Update Changelog: Use the
git changelog
command to automatically update theCHANGELOG.md
with the latest commit descriptions.git changelog
-
Commit and Prepare PR: Commit the changes and prepare a pull request for review.
git checkout -b "bump/platformos-check-$VERSION" git add docs/checks CHANGELOG.md lib/platformos_check/version.rb git commit -m "Bump platformos-check version to $VERSION" hub compare "main:bump/platformos-check-$VERSION"
-
Merge PR: After review, merge your pull request into the main branch.
-
Create GitHub Release: Create a GitHub release for the change using the updated version tag.
VERSION=v1.X.Y git fetch origin git fetch origin --tags git reset origin $VERSION gh release create -t $VERSION