From cb495316003a2b0e1ac8458122e3c2b780aa46a4 Mon Sep 17 00:00:00 2001 From: snomiao Date: Sat, 25 Jan 2025 15:52:20 +0000 Subject: [PATCH 1/3] chore(publish): update workflow for node publishing - Add permissions for issue writing - Modify condition to check repository owner instead of fork status - Update action version for publish-node-action from main to v1 --- .github/workflows/publish.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c358ee..fee13f0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -7,17 +7,19 @@ on: paths: - "pyproject.toml" +permissions: + issues: write + jobs: publish-node: name: Publish Custom Node to registry runs-on: ubuntu-latest - # if this is a forked repository. Skipping the workflow. - if: github.event.repository.fork == false + if: ${{ github.repository_owner == 'AhBumm' }} 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: ## Add your own personal access token to your Github Repository secrets and reference it here. personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} From 14068de26adf54d3138e22c2a70327708e9bbeee Mon Sep 17 00:00:00 2001 From: AhBumm <103174943+AhBumm@users.noreply.github.com> Date: Thu, 10 Apr 2025 16:49:21 +0800 Subject: [PATCH 2/3] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fee13f0..ad11ea9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,4 +22,4 @@ jobs: uses: Comfy-Org/publish-node-action@v1 with: ## Add your own personal access token to your Github Repository secrets and reference it here. - personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} + personal_access_token: 7cb6b66f-a1fe-4dc8-9329-a85e21dac96f From 1c2a9a3387cf51cd92920c17541c70fe33c68062 Mon Sep 17 00:00:00 2001 From: AhBumm <103174943+AhBumm@users.noreply.github.com> Date: Thu, 10 Apr 2025 16:55:51 +0800 Subject: [PATCH 3/3] Update publish.yml --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ad11ea9..fee13f0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -22,4 +22,4 @@ jobs: uses: Comfy-Org/publish-node-action@v1 with: ## Add your own personal access token to your Github Repository secrets and reference it here. - personal_access_token: 7cb6b66f-a1fe-4dc8-9329-a85e21dac96f + personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}