Use actions/checkout@v7 and actions/setup-python@v7, which run on Node.js 24. Invoke the official Comfy CLI directly because the upstream publishing composite still embeds older setup actions. Preserve the existing publish triggers, Python version, registry secret, package version and read-only repository permissions. Pass the registry token through a quoted environment variable. Validation: actionlint and shell syntax checks pass; publish triggers and secret references match the previous workflow. No registry publication is triggered by this workflow-only change.
37 lines
856 B
YAML
37 lines
856 B
YAML
name: Publish to Comfy Registry
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- pyproject.toml
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish custom node
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v7
|
|
|
|
# Run the CLI directly; the upstream publishing action still uses Node.js 20 actions.
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v7
|
|
with:
|
|
python-version: "3.10"
|
|
|
|
- name: Install Comfy CLI
|
|
run: python -m pip install comfy-cli
|
|
|
|
- name: Publish to Comfy Registry
|
|
env:
|
|
REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
|
|
run: |
|
|
comfy --skip-prompt --no-enable-telemetry env
|
|
comfy node publish --token "$REGISTRY_ACCESS_TOKEN"
|