Merge pull request #217 from exoego/dependabot/npm_and_yarn/esbuild-0… #395
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI (from fork) | |
| 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.head.repo.fork == true | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22.x | |
| cache: npm | |
| - run: npm ci | |
| - run: npm run build | |
| - name: Analyze esbuild bundle size | |
| uses: jenseng/dynamic-uses@8bc24f0360175e710da532c4d19eafdbed489a06 | |
| with: | |
| uses: exoego/esbuild-bundle-analyzer@${{ github.sha }} | |
| with: '{"metafiles": "tmp/meta.json"}' | |
| - uses: actions/upload-artifact@v7 | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| with: | |
| name: distribution | |
| path: | | |
| dist/ | |
| action.yaml |