From 1fdc36237220425ca0fbb511e2db8a1b83420bc2 Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Wed, 4 Jun 2025 04:30:58 -0700 Subject: [PATCH] chore(publish): update publish action workflow with permissions and version check (#6) - Added 'issues: write' permission to the workflow - Updated the publish-node-action to use version 'v1' - Added a condition to run the job only for 'recraft-ai' repository owner Co-authored-by: snomiao --- .github/workflows/publish_action.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml index e519608..6227542 100644 --- a/.github/workflows/publish_action.yml +++ b/.github/workflows/publish_action.yml @@ -6,14 +6,18 @@ on: paths: - "pyproject.toml" +permissions: + issues: write + jobs: publish-node: name: Publish Custom Node to registry runs-on: ubuntu-latest + if: ${{ github.repository_owner == 'recraft-ai' }} steps: - name: Check out code uses: actions/checkout@v4 - name: Publish Custom Node - uses: Comfy-Org/publish-node-action@main + uses: Comfy-Org/publish-node-action@v1 with: personal_access_token: ${{ secrets.COMFY_REGISTRY_SECRET }}