Skip to content

Commit

Permalink
Run the linting action on pull requests (#805)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
Regalijan authored May 25, 2024
1 parent e1c01e1 commit 5546771
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/npmpublish.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
name: Test & Publish

on:
pull_request:
branches:
- master

push:
branches:
- master
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5546771

Please sign in to comment.