mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
* chore(ci): use setup-node cache * fix: Consistent with the naming on the Node.js * fix: 还原命名 * fix: 1
32 lines
639 B
YAML
32 lines
639 B
YAML
name: 📦 Package Size Report
|
|
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
size-report:
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
CI_JOB_NUMBER: 1
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
cache: 'pnpm'
|
|
|
|
- uses: preactjs/compressed-size-action@v2
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
pattern: './dist/element-plus/dist/*.{js,mjs,css}'
|
|
env:
|
|
NODE_OPTIONS: --max-old-space-size=4096
|