From 50b157e72b7c03b62bc1b2ea76554e8b0331d7d8 Mon Sep 17 00:00:00 2001 From: Dariusz L Date: Sat, 12 Sep 2026 13:58:11 +0200 Subject: [PATCH] Fix publish command invocation Run node publishing directly through the Comfy CLI without the external environment wrapper, and update the workflow test to prevent regressions. --- .github/workflows/publish.yml | 2 +- tests/test_publish_workflow.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3d62fe9..79243de 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -153,7 +153,7 @@ jobs: REGISTRY_ACCESS_TOKEN: ${{ secrets.REGISTRY_ACCESS_TOKEN }} run: | set +e - output="$(comfy --skip-prompt --no-enable-telemetry env comfy node publish --token "$REGISTRY_ACCESS_TOKEN" 2>&1)" + output="$(comfy --skip-prompt --no-enable-telemetry node publish --token "$REGISTRY_ACCESS_TOKEN" 2>&1)" exit_code=$? printf '%s\n' "$output" diff --git a/tests/test_publish_workflow.py b/tests/test_publish_workflow.py index 0dff81e..96b3dc3 100644 --- a/tests/test_publish_workflow.py +++ b/tests/test_publish_workflow.py @@ -19,4 +19,5 @@ def test_publish_workflow_uses_current_python_runtime_without_the_external_wrapp assert "actions/setup-python@v6" in workflow assert "Comfy-Org/publish-node-action@main" not in workflow - assert "comfy node publish --token" in workflow + assert "comfy --skip-prompt --no-enable-telemetry node publish --token" in workflow + assert "env comfy node publish" not in workflow