Skip to content

Commit

Permalink
ci: trigger release job for only pushes, not pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
iiroj authored and okonet committed Apr 5, 2020
1 parent 12bf8de commit 87f9966
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,13 @@ jobs:
name: Release
runs-on: ubuntu-latest
needs: test
# Trigger release for only pushes to branches defined above
if: github.event == 'push'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
node-version: '13'
# Release using semantic-release.
# While this runs on all branches, it will only release latest from master
- uses: codfish/semantic-release-action@v1
Expand Down

0 comments on commit 87f9966

Please sign in to comment.