Skip to content

Commit b4f6a9e

Browse files
authored
chore(publish): update publish action workflow with permissions and conditional execution (#123)
1 parent fffa28a commit b4f6a9e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/publish_action.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@ 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 == 'huchenlei' }}
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:
20-
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github secrets and reference it here.
24+
personal_access_token: ${{ secrets.REGISTRY_ACCESS_TOKEN }} ## Add your own personal access token to your Github secrets and reference it here.

0 commit comments

Comments
 (0)