File tree Expand file tree Collapse file tree 6 files changed +618
-133
lines changed Expand file tree Collapse file tree 6 files changed +618
-133
lines changed Original file line number Diff line number Diff line change 44 pull_request :
55
66jobs :
7+ build-main :
8+ runs-on : ubuntu-latest
9+ steps :
10+ - name : Checkout
11+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
12+ with :
13+ ref : main
14+ - name : Use Node v${{ matrix.node-version }}
15+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
16+ with :
17+ node-version : 24.x
18+ - name : Install Dependencies
19+ run : npm ci
20+ - name : Build
21+ run : npm run build
22+ - name : Pack
23+ run : npm pack
24+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
25+ with :
26+ name : base-packages
27+ path : ' *.tgz'
28+ build-pr :
29+ runs-on : ubuntu-latest
30+ steps :
31+ - name : Checkout
32+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
33+ - name : Use Node v${{ matrix.node-version }}
34+ uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
35+ with :
36+ node-version : 24.x
37+ - name : Install Dependencies
38+ run : npm ci
39+ - name : Build
40+ run : npm run build
41+ - name : Pack
42+ run : npm pack
43+ - uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
44+ with :
45+ name : source-packages
46+ path : ' *.tgz'
747 diff_dependencies :
848 runs-on : ubuntu-latest
49+ needs : [build-main, build-pr]
950 permissions :
1051 pull-requests : write
1152 steps :
1253 - name : Checkout repository
1354 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1455 with :
1556 fetch-depth : 0
57+ - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
58+ with :
59+ name : base-packages
60+ path : ./base-packages
61+ - uses : actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
62+ with :
63+ name : source-packages
64+ path : ./source-packages
1665 - name : Create Diff
1766 uses : ./
67+ with :
68+ base-packages : ./base-packages/*.tgz
69+ source-packages : ./source-packages/*.tgz
Original file line number Diff line number Diff line change @@ -26,6 +26,16 @@ inputs:
2626 description : ' Threshold (in bytes) for warning about significant increase in package size'
2727 required : false
2828 default : ' 100000'
29+ base-packages :
30+ description : ' Glob pattern for base branch pack files (e.g., "./base-packs/*.tgz")'
31+ required : false
32+ source-packages :
33+ description : ' Glob pattern for source branch pack files (e.g., "./source-packs/*.tgz")'
34+ required : false
35+ pack-size-threshold :
36+ description : ' Threshold (in bytes) for warning about significant increase in total pack size'
37+ required : false
38+ default : ' 50000'
2939
3040runs :
3141 using : node24
You can’t perform that action at this time.
0 commit comments