feat(enhanced): make hoisted runtime the default implementation #1
Workflow file for this run
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: Bundle Size Check | |
| on: | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check-packages: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8.11.0 | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: Setup pnpm cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Check package build sizes | |
| uses: preactjs/compressed-size-action@v2 | |
| with: | |
| repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
| build-script: 'build:pkg' | |
| pattern: './packages/**/dist/**/*.{js,mjs,cjs}' | |
| exclude: '{**/*.map,**/node_modules/**}' | |
| compression: 'gzip' | |
| comment-key: 'packages' | |
| check-apps: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '18' | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v2 | |
| with: | |
| version: 8.11.0 | |
| - name: Get pnpm store directory | |
| shell: bash | |
| run: | | |
| echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | |
| - name: Setup pnpm cache | |
| uses: actions/cache@v3 | |
| with: | |
| path: ${{ env.STORE_PATH }} | |
| key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pnpm-store- | |
| - name: Install dependencies | |
| run: pnpm install | |
| - name: Build packages (prerequisite for building apps) | |
| run: pnpm build:pkg | |
| - name: Check app build sizes | |
| uses: preactjs/compressed-size-action@v2 | |
| with: | |
| repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
| build-script: 'app:next:build' | |
| pattern: './apps/**/dist/**/*.{js,mjs,cjs}' | |
| exclude: '{**/*.map,**/node_modules/**}' | |
| compression: 'gzip' | |
| comment-key: 'apps' | |
| clean-script: 'rm -rf apps/*/dist' |