chore: add versioning + release automation

This commit is contained in:
Nid All
2026-01-30 21:19:51 +01:00
parent 642d751e03
commit 5bb0da7a92
8 changed files with 90 additions and 1 deletions
+20
View File
@@ -0,0 +1,20 @@
name: release-please
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
config-file: .release-please-config.json
manifest-file: .release-please-manifest.json
+12
View File
@@ -0,0 +1,12 @@
{
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
"release-type": "simple",
"include-v-in-tag": true,
"packages": {
".": {
"package-name": "ComfyUI_PromptStyler",
"changelog-path": "CHANGELOG.md"
}
}
}
+4
View File
@@ -0,0 +1,4 @@
{
".": "0.1.0"
}
+19
View File
@@ -0,0 +1,19 @@
# Changelog
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project follows Semantic Versioning.
## [Unreleased]
## [0.1.0] - 2026-01-30
### Added
- `apply_style` toggle to disable styling in the node.
- New style packs: Decorative Arts and Internet Aesthetics (library now at 400 unique styles).
- `tools/audit_styles.py` for consistency auditing.
### Changed
- README updates for new node input.
+6
View File
@@ -2,6 +2,12 @@
Custom ComfyUI node that applies curated style **prefix/suffix** templates to your positive prompt and outputs **CONDITIONING** for KSampler.
## Versioning / Releases
- Version: `VERSION` (also mirrored as `__version__` in `__init__.py`).
- Changelog: `CHANGELOG.md`.
- Releases: automated via Release Please (`.github/workflows/release-please.yml`).
## Install
1. Copy this folder to: `ComfyUI/custom_nodes/ComfyUI_PromptStyler`
+25
View File
@@ -0,0 +1,25 @@
# Releasing
This repo uses **Semantic Versioning** and **Release Please** to keep releases organized.
## Normal Release Flow (recommended)
1. Merge changes into `main`.
2. The `release-please` workflow opens/updates a **Release PR** that:
- bumps the version
- updates `CHANGELOG.md`
3. Merge the Release PR.
4. Release Please creates a Git tag (e.g. `v0.2.0`) and a GitHub Release.
## Manual Release (if automation is disabled)
1. Update `__init__.py` `__version__` and `VERSION` to the new version.
2. Add notes under `CHANGELOG.md` and move them into a new version section.
3. Commit with a message like: `chore(release): vX.Y.Z`
4. Tag and push:
```bash
git tag vX.Y.Z
git push --tags
```
+1
View File
@@ -0,0 +1 @@
0.1.0
+3 -1
View File
@@ -5,7 +5,9 @@ Drop this folder into: ComfyUI/custom_nodes/ComfyUI_PromptStyler
Then restart ComfyUI (or use "Reload custom nodes").
"""
__version__ = "0.1.0"
from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS", "__version__"]