File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575
7676 - name : Build size check
7777 run : |
78- BUILD_SIZE_KB=$(du -sk dist | cut -f1)
78+ BUILD_SIZE_KB=$(du -sk build/client | cut -f1)
7979 BUILD_SIZE_MB=$((BUILD_SIZE_KB / 1024))
8080 echo "Build size: ${BUILD_SIZE_MB}MB"
8181
9393 uses : actions/upload-artifact@v4
9494 with :
9595 name : build-test-files
96- path : dist /
96+ path : build/client /
9797 retention-days : 1
9898
9999 - name : Comment build results on PR
@@ -148,10 +148,10 @@ jobs:
148148
149149 // 빌드 크기 정보
150150 try {
151- const stats = fs.statSync('dist ');
151+ const stats = fs.statSync('build/client ');
152152 if (stats.isDirectory()) {
153153 const { execSync } = require('child_process');
154- const sizeKB = execSync('du -sk dist | cut -f1', { encoding: 'utf8' }).trim();
154+ const sizeKB = execSync('du -sk build/client | cut -f1', { encoding: 'utf8' }).trim();
155155 const sizeMB = Math.round(parseInt(sizeKB) / 1024);
156156
157157 if (sizeMB > 10) {
You can’t perform that action at this time.
0 commit comments