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 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@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'
7
47
diff_dependencies :
8
48
runs-on : ubuntu-latest
49
+ needs : [build-main, build-pr]
9
50
permissions :
10
51
pull-requests : write
11
52
steps :
12
53
- name : Checkout repository
13
54
uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
14
55
with :
15
56
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
16
65
- name : Create Diff
17
66
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:
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