From 16d137ee16e58a73f71c8dfb50a7938e6366d960 Mon Sep 17 00:00:00 2001 From: snomiao Date: Mon, 20 Jan 2025 21:24:00 +0000 Subject: [PATCH] chore(publish): update GitHub Actions workflow for node publishing - Add permissions to allow writing issues - Update action version to v1 for publish-node-action - Add condition to run job only for 'AIGODLIKE' repository owner --- .github/workflows/publish_action.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_action.yml b/.github/workflows/publish_action.yml index d89ef1a..78fbc16 100644 --- a/.github/workflows/publish_action.yml +++ b/.github/workflows/publish_action.yml @@ -7,14 +7,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 == 'AIGODLIKE' }} 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.REGISTRY_ACCESS_TOKEN }} \ No newline at end of file + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}