diff --git a/.github/workflows/bundle-analysis.yml b/.github/workflows/bundle-analysis.yml deleted file mode 100644 index 6db5f91..0000000 --- a/.github/workflows/bundle-analysis.yml +++ /dev/null @@ -1,39 +0,0 @@ -name: bundle analysis -on: - push: - branches: [main] - paths-ignore: - - '*.md' - pull_request_target: - branches: [main] - - -jobs: - bundle-analysis-from-fork: - permissions: - contents: read # for checkout repository - actions: read # for fetching base branch bundle stats - pull-requests: write # for comments - runs-on: ubuntu-latest - timeout-minutes: 5 - if: github.event.pull_request.user.login == 'exoego' - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20.x - cache: npm - - run: npm ci - - run: npm run build - - name: Analyze esbuild bundle size - 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: distribution - path: | - dist/ - action.yaml diff --git a/.github/workflows/ci-from-fork.yml b/.github/workflows/ci-from-fork.yml index ece67f4..8cfdb67 100644 --- a/.github/workflows/ci-from-fork.yml +++ b/.github/workflows/ci-from-fork.yml @@ -16,7 +16,7 @@ jobs: pull-requests: write # for comments runs-on: ubuntu-latest timeout-minutes: 5 - if: github.event.pull_request.user.login != 'exoego' + if: github.event.pull_request.head.repo.fork == true steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ca7c63c..f5d30be 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,7 +41,7 @@ jobs: pull-requests: write # for comments runs-on: ubuntu-latest timeout-minutes: 5 - if: github.event.pull_request.user.login == 'exoego' + if: github.event.pull_request.head.repo.fork == false steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4