File tree Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Expand file tree Collapse file tree 1 file changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,13 @@ jobs:
134
134
- run : PUPPETEER_SKIP_DOWNLOAD=1 pnpm install
135
135
- run : pnpm run size
136
136
137
- - uses : actions/upload-artifact@v3
137
+ - name : Upload Size Report
138
+ uses : actions/upload-artifact@v3
138
139
with :
139
140
name : size-report
140
141
path : temp/size
141
142
142
- - name : Download artifact
143
+ - name : Download Previous Size Report
143
144
id : download-artifact
144
145
uses : dawidd6/action-download-artifact@v2
145
146
continue-on-error : true
@@ -150,5 +151,18 @@ jobs:
150
151
path : temp/size-prev
151
152
152
153
- name : Compare size
153
- run : node scripts/compare-size.js
154
- if : ${{ success() }}
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 -->'
You can’t perform that action at this time.
0 commit comments