Skip to content

Commit 128a848

Browse files
committed
chore: only upload coverage artifacts on PR runs
Add github.event_name == 'pull_request' condition to artifact upload to avoid creating unnecessary artifacts on non-PR pushes.
1 parent 5a97cad commit 128a848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: unit tests
3535
run: npm test
3636
- name: Upload coverage reports
37-
if: always() && matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x'
37+
if: always() && github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x'
3838
uses: actions/upload-artifact@v4
3939
with:
4040
name: coverage-report

0 commit comments

Comments
 (0)