mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 01:11:25 +08:00
36 lines
689 B
YAML
36 lines
689 B
YAML
name: 📦 Package Size Report
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 'master'
|
|
types: [opened, synchronize]
|
|
|
|
jobs:
|
|
size-report:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
matrix:
|
|
node-version: [16.x]
|
|
|
|
env:
|
|
CI_JOB_NUMBER: 1
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v2
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
cache: 'pnpm'
|
|
|
|
- uses: preactjs/compressed-size-action@v2
|
|
with:
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
pattern: './dist/element-plus/dist/*.{js,mjs,css}'
|