File tree Expand file tree Collapse file tree 2 files changed +62
-53
lines changed Expand file tree Collapse file tree 2 files changed +62
-53
lines changed Original file line number Diff line number Diff line change @@ -114,56 +114,3 @@ jobs:
114
114
115
115
- name : Run type declaration tests
116
116
run : pnpm run test-dts
117
-
118
- size :
119
- runs-on : ubuntu-latest
120
- if : github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
121
-
122
- steps :
123
- - uses : actions/checkout@v3
124
-
125
- - name : Install pnpm
126
- uses : pnpm/action-setup@v2
127
-
128
- - name : Set node version to 18
129
- uses : actions/setup-node@v3
130
- with :
131
- node-version : 18
132
- cache : ' pnpm'
133
-
134
- - run : PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
135
- - run : pnpm run size
136
-
137
- - name : Upload Size Report
138
- uses : actions/upload-artifact@v3
139
- with :
140
- name : size-report
141
- path : temp/size
142
-
143
- - name : Download Previous Size Report
144
- id : download-artifact
145
- uses : dawidd6/action-download-artifact@v2
146
- continue-on-error : true
147
- with :
148
- pr : ${{github.event.pull_request.number}}
149
- # branch: main
150
- name : size-report
151
- path : temp/size-prev
152
-
153
- - name : Compare size
154
- run : node scripts/compare-size.js > size.md
155
-
156
- - name : Read Size Markdown
157
- id : size-markdown
158
- uses : juliangruber/read-file-action@v1
159
- with :
160
- path : ./size.md
161
-
162
- - name : Create Comment
163
- uses : actions-cool/maintain-one-comment@v3
164
- with :
165
- body : |
166
- ${{steps.size-markdown.outputs.content}}
167
- <!-- VUE_CORE_SIZE -->
168
- body-include : ' <!-- VUE_CORE_SIZE -->'
169
- number : ${{github.event.pull_request.number}}
Original file line number Diff line number Diff line change
1
+ name : size report
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ jobs :
12
+ size :
13
+ runs-on : ubuntu-latest
14
+
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+
18
+ - name : Install pnpm
19
+ uses : pnpm/action-setup@v2
20
+
21
+ - name : Set node version to 18
22
+ uses : actions/setup-node@v3
23
+ with :
24
+ node-version : 18
25
+ cache : ' pnpm'
26
+
27
+ - run : PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
28
+ - run : pnpm run size
29
+
30
+ - name : Upload Size Report
31
+ uses : actions/upload-artifact@v3
32
+ with :
33
+ name : size-report
34
+ path : temp/size
35
+
36
+ - name : Download Previous Size Report
37
+ id : download-artifact
38
+ uses : dawidd6/action-download-artifact@v2
39
+ continue-on-error : true
40
+ with :
41
+ pr : ${{github.event.pull_request.number}}
42
+ # branch: main
43
+ name : size-report
44
+ path : temp/size-prev
45
+
46
+ - name : Compare size
47
+ run : node scripts/compare-size.js > size.md
48
+
49
+ - name : Read Size Markdown
50
+ id : size-markdown
51
+ uses : juliangruber/read-file-action@v1
52
+ with :
53
+ path : ./size.md
54
+
55
+ - name : Create Comment
56
+ uses : actions-cool/maintain-one-comment@v3
57
+ with :
58
+ body : |
59
+ ${{steps.size-markdown.outputs.content}}
60
+ <!-- VUE_CORE_SIZE -->
61
+ body-include : ' <!-- VUE_CORE_SIZE -->'
62
+ number : ${{github.event.pull_request.number}}
You can’t perform that action at this time.
0 commit comments