Skip to content

Commit

Permalink
chore: only run ci.yml on main branch
Browse files Browse the repository at this point in the history
because we run a separate pr.yml for PRs and the previous check didn't really work
  • Loading branch information
TkDodo committed Jan 30, 2023
1 parent a9ba135 commit 7a62494
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
description: override release tag
required: false
push:
branches:
- 'main'
jobs:
test-and-publish:
if: github.repository == 'TanStack/query' && github.event_name != 'pull_request'
if: github.repository == 'TanStack/query' && github.ref == 'refs/heads/main'
name: 'Test & Publish'
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 7a62494

Please sign in to comment.