diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f7c9d..0dedfe2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,6 @@ on: - '*.md' pull_request: branches: [main] - paths-ignore: - - '*.md' permissions: contents: read # for checkout repository @@ -40,15 +38,18 @@ jobs: echo 'clean' fi - name: Analyze esbuild bundle size + if: github.event_name == 'pull_request' uses: jenseng/dynamic-uses@5175289a9a87978dcfcb9cf512b821d23b2a53eb with: uses: exoego/esbuild-bundle-analyzer@${{ github.sha }} with: '{"metafiles": "tmp/meta.json"}' - uses: actions/upload-artifact@v4 + if: github.event_name == 'push' && github.ref == 'refs/heads/main' with: name: dist path: dist - uses: actions/upload-artifact@v4 + if: github.event_name == 'push' && github.ref == 'refs/heads/main' with: name: action.yaml path: action.yaml