diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index a99564a..5777005 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -23,8 +23,10 @@ jobs: - run: npm ci - run: npm run build - run: npm run gen-schemas - - run: npm run pack - - uses: actions/upload-artifact@v4 + - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: npm run pack + - if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + uses: actions/upload-artifact@v4 with: name: dist path: dist/