2022-03-11 22:56:05 +08:00
|
|
|
name: 📦 Package Size Report
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
2022-03-13 16:31:55 +08:00
|
|
|
branches:
|
|
|
|
- 'master'
|
2022-03-11 22:56:05 +08:00
|
|
|
types: [opened, synchronize]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
size-report:
|
|
|
|
runs-on: ubuntu-latest
|
2022-05-10 19:24:16 +08:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
node-version: [16.x]
|
|
|
|
|
2022-03-11 22:56:05 +08:00
|
|
|
env:
|
|
|
|
CI_JOB_NUMBER: 1
|
2022-05-10 19:24:16 +08:00
|
|
|
|
2022-03-11 22:56:05 +08:00
|
|
|
steps:
|
2022-03-18 02:14:42 +08:00
|
|
|
- uses: actions/checkout@v3
|
2022-03-11 22:56:05 +08:00
|
|
|
|
|
|
|
- name: Setup pnpm
|
|
|
|
uses: pnpm/action-setup@v2
|
|
|
|
|
2022-05-10 19:24:16 +08:00
|
|
|
- name: Setup node
|
|
|
|
uses: actions/setup-node@v3
|
2022-03-11 22:56:05 +08:00
|
|
|
with:
|
2022-05-10 19:24:16 +08:00
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
cache: 'pnpm'
|
2022-03-11 22:56:05 +08:00
|
|
|
|
|
|
|
- uses: preactjs/compressed-size-action@v2
|
|
|
|
with:
|
|
|
|
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
pattern: './dist/element-plus/dist/*.{js,mjs,css}'
|