con un clic
gh-release
// Automates version bumping in manifest.json and creating GitHub releases for Home Assistant custom components. Use when releasing a new version of a project.
// Automates version bumping in manifest.json and creating GitHub releases for Home Assistant custom components. Use when releasing a new version of a project.
| name | gh-release |
| description | Automates version bumping in manifest.json and creating GitHub releases for Home Assistant custom components. Use when releasing a new version of a project. |
This skill automates the process of creating a new release for a Home Assistant custom component. It finds the manifest.json file, updates the version, commits the change, and then creates a GitHub release using the gh CLI tool.
This project follows Semantic Versioning (SemVer) for releasing versions. SemVer uses a MAJOR.MINOR.PATCH format:
Example: 1.0.0 -> 1.1.0 (new feature), 1.1.0 -> 1.1.1 (bug fix), 1.1.1 -> 2.0.0 (breaking change).
To use this skill, execute the create-release.sh script from the root of your project with the desired new version number as an argument.
Example:
./scripts/create-release.sh 0.9.1
This will perform the following actions:
main branch.manifest.json file in the current directory and its subdirectories.version field in the found manifest.json to 0.9.1.manifest.json file.chore(release): 0.9.1.main branch.0.9.1 with auto-generated release notes using gh release create "0.9.1" --generate-notes.gh CLI tool must be installed and authenticated.manifest.json file in the project. If zero or more than one are found, the script will exit with an error.create-release.sh: The main script that performs the release automation.