修复某些情况下document.body为null时报错的问题 #1505
Workflow file for this run
This file contains 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: Compressed Size | |
on: | |
push: | |
branches: [master, feature] | |
pull_request: | |
# Cancel prev CI if new commit come | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
compressed-size: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install pnpm | |
id: pnpm-install | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 7 | |
run_install: false | |
- uses: actions/checkout@v3 | |
- uses: preactjs/compressed-size-action@v2 | |
with: | |
repo-token: '${{ secrets.GITHUB_TOKEN }}' | |
pattern: './lib/bundle/*{.umd.js,.css}' |