diff --git a/.github/workflows/prod-test.yml b/.github/workflows/prod-test.yml index 6831e05a4..d4307ed35 100644 --- a/.github/workflows/prod-test.yml +++ b/.github/workflows/prod-test.yml @@ -45,6 +45,21 @@ jobs: name: dist path: dist + # This step calls `git reset` + # It should be the last step + # The cache step might saving the result of master branch, need investigate + - name: Check Sizes + if: >- + github.event_name == 'pull_request' && + ( + github.actor == 'dependabot' || + contains(github.event.comment.body, '/size') + ) + uses: preactjs/compressed-size-action@v2.0.1 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + compression: none + lint: name: Lint runs-on: ubuntu-latest diff --git a/cspell.json b/cspell.json index 02589372c..ecd98c7ca 100644 --- a/cspell.json +++ b/cspell.json @@ -76,6 +76,7 @@ "defun", "deltice", "deopt", + "dependabot", "deps", "destructured", "desugared", @@ -261,6 +262,7 @@ "pnpm", "postprocess", "postprocessor", + "preactjs", "precache", "precommit", "prefetch",