File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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@v4
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@v4
44+ with :
45+ name : source-packages
46+ path : ' *.tgz'
747 diff_dependencies :
848 runs-on : ubuntu-latest
949 permissions :
1050 pull-requests : write
1151 steps :
52+ - uses : actions/download-artifact@v3
53+ with :
54+ name : base-packages
55+ path : ./base-packages
56+ - uses : actions/download-artifact@v3
57+ with :
58+ name : source-packages
59+ path : ./source-packages
1260 - name : Checkout repository
1361 uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1462 with :
1563 fetch-depth : 0
1664 - name : Create Diff
1765 uses : ./
66+ with :
67+ base-packages : ./base-packages/*.tgz
68+ 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