diff --git a/.github/workflows/nodejs-beta.yml b/.github/workflows/nodejs-beta.yml index 6a36bbcaf..48c1a7169 100644 --- a/.github/workflows/nodejs-beta.yml +++ b/.github/workflows/nodejs-beta.yml @@ -22,6 +22,8 @@ jobs: CI: true publish-npm: + if: github.repository == 'homebridge/HAP-NodeJS' + needs: build runs-on: ubuntu-latest diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 2caa2266d..b595d6947 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -31,7 +31,7 @@ jobs: publish-npm: # publish should only ran on 'push' event and if a version tag was created - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') + if: github.repository == 'homebridge/HAP-NodeJS' && github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') needs: build # only run if build succeeds