From 55467718f358e8158d474f2298fffbd1103fe88a Mon Sep 17 00:00:00 2001 From: Regalijan <72576136+Regalijan@users.noreply.github.com> Date: Sat, 25 May 2024 13:25:30 -0400 Subject: [PATCH] Run the linting action on pull requests (#805) * Run Test & Publish on PR open/push * Limit PR trigger to master branch * Remove types property from pr trigger Event is only opened, reopened, and synchronize by default * Only run publish-nom on push event --- .github/workflows/npmpublish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index 8a29e4340..df36006b0 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -1,6 +1,10 @@ name: Test & Publish on: + pull_request: + branches: + - master + push: branches: - master @@ -28,6 +32,7 @@ jobs: publish-npm: needs: test + if: github.event_name == 'push' runs-on: ubuntu-latest steps: - name: Checkout code with ADMIN_TOKEN