Skip to content

Commit

Permalink
Update test-and-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerlinsley authored Jun 28, 2020
1 parent 5546670 commit 5d6e86a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- 'master'
- 'next'
- '1.x'
pull_request:

jobs:
Expand All @@ -29,7 +30,7 @@ jobs:
publish-module:
name: 'Publish Module to NPM'
needs: test
if: github.ref == 'refs/heads/master' #publish only when merged in master, not on PR
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/next' || github.ref == 'refs/heads/1.x' #publish only when merged in master, not on PR
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit 5d6e86a

Please sign in to comment.