File tree Expand file tree Collapse file tree 6 files changed +439
-127
lines changed Expand file tree Collapse file tree 6 files changed +439
-127
lines changed Original file line number Diff line number Diff line change 4
4
pull_request :
5
5
6
6
jobs :
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'
7
47
diff_dependencies :
8
48
runs-on : ubuntu-latest
9
49
permissions :
10
50
pull-requests : write
11
51
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
12
60
- name : Checkout repository
13
61
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14
62
with :
15
63
fetch-depth : 0
16
64
- name : Create Diff
17
65
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:
26
26
description : ' Threshold (in bytes) for warning about significant increase in package size'
27
27
required : false
28
28
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'
29
39
30
40
runs :
31
41
using : node24
You can’t perform that action at this time.
0 commit comments