From 6d4fabfaccd299705bf7eb90d5aa065d1d7b7645 Mon Sep 17 00:00:00 2001 From: Nid All Date: Fri, 30 Jan 2026 21:19:51 +0100 Subject: [PATCH] chore: add versioning + release automation --- .github/workflows/release-please.yml | 20 ++++++++++++++++++++ .release-please-config.json | 12 ++++++++++++ .release-please-manifest.json | 4 ++++ CHANGELOG.md | 19 +++++++++++++++++++ README.md | 6 ++++++ RELEASING.md | 25 +++++++++++++++++++++++++ VERSION | 1 + __init__.py | 4 +++- 8 files changed, 90 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release-please.yml create mode 100644 .release-please-config.json create mode 100644 .release-please-manifest.json create mode 100644 CHANGELOG.md create mode 100644 RELEASING.md create mode 100644 VERSION diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000..52c2a9a --- /dev/null +++ b/.github/workflows/release-please.yml @@ -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 + diff --git a/.release-please-config.json b/.release-please-config.json new file mode 100644 index 0000000..a77e16f --- /dev/null +++ b/.release-please-config.json @@ -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" + } + } +} + diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000..fe86486 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,4 @@ +{ + ".": "0.1.0" +} + diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..47f1c74 --- /dev/null +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index 42efcc7..6c7d56c 100644 --- a/README.md +++ b/README.md @@ -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` diff --git a/RELEASING.md b/RELEASING.md new file mode 100644 index 0000000..41cd6a5 --- /dev/null +++ b/RELEASING.md @@ -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 +``` + diff --git a/VERSION b/VERSION new file mode 100644 index 0000000..6e8bf73 --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +0.1.0 diff --git a/__init__.py b/__init__.py index e63a69b..404f59c 100644 --- a/__init__.py +++ b/__init__.py @@ -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__"]