This document explains how to release new versions of the code-to-docs action.
When you're ready to release a new version (e.g., v1.2.0):
git tag v1.2.0
git push origin v1.2.0This ensures users using @v1 get the latest v1.x.x version:
git tag -f v1 # Move v1 tag to point to v1.2.0
git push -f origin v1 # Force push the moved tagIf the example in README.md references a specific version, consider whether it needs updating.
Follow semantic versioning (MAJOR.MINOR.PATCH):
- MAJOR (v2.0.0): Breaking changes
- MINOR (v1.2.0): New features, backward compatible
- PATCH (v1.1.1): Bug fixes, backward compatible
# Release v1.2.0
git tag v1.2.0
git push origin v1.2.0
# Move v1 to v1.2.0
git tag -f v1
git push -f origin v1
echo "✅ Released v1.2.0 and updated v1 tag"After releasing, verify users can access it:
# Check tags
git ls-remote --tags origin | grep v1
# Should see both:
# refs/tags/v1.2.0
# refs/tags/v1Users can now use:
redhat-community-ai-tools/code-to-docs@v1(gets v1.2.0)redhat-community-ai-tools/code-to-docs@v1.2.0(pinned to v1.2.0)