Skip to content

Commit

Permalink
Rework preconditions for execution of publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Nov 22, 2021
1 parent b0f3125 commit c2a5f94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
publish:
needs: lint

if: ${{ secrets.npm_token != null }}
if: ${{ github.repository == 'homebridge/homebridge' }}

uses: homebridge/.github/.github/workflows/npm-publish.yml@main
with:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:

publish:
needs: build_and_test

if: ${{ github.repository == 'homebridge/homebridge' }}

uses: homebridge/.github/.github/workflows/npm-publish.yml@main
secrets:
npm_auth_token: ${{ secrets.npm_token }}

0 comments on commit c2a5f94

Please sign in to comment.