Skip to content

Commit 788c050

Browse files
committed
chore(publish): update GitHub Actions workflow for node publishing
- Add permissions for writing issues - Update action version to v1 for publish-node-action - Add condition to run job only for specific repository owner
1 parent bc8922d commit 788c050

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,19 @@ on:
77
paths:
88
- "pyproject.toml"
99

10+
permissions:
11+
issues: write
12+
1013
jobs:
1114
publish-node:
1215
name: Publish Custom Node to registry
1316
runs-on: ubuntu-latest
17+
if: ${{ github.repository_owner == 'pythongosssss' }}
1418
steps:
1519
- name: Check out code
1620
uses: actions/checkout@v4
1721
- name: Publish Custom Node
18-
uses: Comfy-Org/publish-node-action@main
22+
uses: Comfy-Org/publish-node-action@v1
1923
with:
2024
## Add your own personal access token to your Github Repository secrets and reference it here.
21-
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}
25+
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)