Skip to content

Commit

Permalink
only push when push and main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
unnoq committed Nov 29, 2024
1 parent d693ef8 commit 3dc97ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- run: pnpm run test

publish:
if: github.event_name == 'push'
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: [lint, test]
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 3dc97ae

Please sign in to comment.