Skip to content

Commit c57284d

Browse files
committed
fix: prevents "publish" GitHub Actions workflow runs on forks
1 parent da4f245 commit c57284d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ permissions:
99

1010
jobs:
1111
publish-npm:
12+
# prevents this action from running on forks
13+
if: github.repository == 'patoale/envloadr'
14+
1215
runs-on: ubuntu-latest
1316

1417
steps:

0 commit comments

Comments
 (0)