chore(deps): update unocss monorepo to v66.6.0 #934
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: Pull request analysis | |
| on: | |
| pull_request: | |
| pull_request_target: | |
| jobs: | |
| build-head: | |
| name: Build head | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: ${{github.event.pull_request.head.ref}} | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm i | |
| - name: Build | |
| run: pnpm analyze | |
| - name: Upload stats.json | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: head-stats | |
| path: .analysis/stats-0.json | |
| build-base: | |
| name: Build base | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| ref: ${{ github.base_ref }} | |
| - uses: pnpm/action-setup@v4 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm i | |
| - name: Build | |
| run: pnpm analyze | |
| - name: Upload stats.json | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: base-stats | |
| path: .analysis/stats-0.json | |
| # run the action against the stats.json files | |
| compare: | |
| name: 'Compare base & head bundle sizes' | |
| runs-on: ubuntu-latest | |
| needs: [build-base, build-head] | |
| permissions: | |
| pull-requests: write | |
| steps: | |
| - uses: actions/download-artifact@v5 | |
| - uses: twk3/rollup-size-compare-action@v1.2.0 | |
| with: | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| current-stats-json-path: ./head-stats/stats-0.json | |
| base-stats-json-path: ./base-stats/stats-0.json |