With this configuration
- name: Build size report
uses: andresz1/size-limit-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
skip_step: install
script: pnpm run size
directory: ./dist
package_manager: pnpm
it leads to this crash:

Also, for some reason, it doesn't understand projects that both support an ESM and CJS build.