From aa88502442e788ff4f4d0df0c5fb19b91c60be4f Mon Sep 17 00:00:00 2001 From: exoego Date: Sat, 11 May 2024 16:21:40 +0900 Subject: [PATCH 1/2] Optimize CI --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0f7c9d..8a79303 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,15 +40,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 From f6d080377fc3409d41ddbdbbb70a95a1c8d86bd2 Mon Sep 17 00:00:00 2001 From: exoego Date: Sat, 11 May 2024 16:22:05 +0900 Subject: [PATCH 2/2] Run CI every time on PR --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a79303..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