feat: 添加构建大小统计到 depcheck 工作流,并移除 playwright 工作流中的重复统计
Some checks failed
/ lint-build-and-check (push) Failing after 52s
/ build-and-deploy-to-vercel (push) Failing after 1m3s
/ surge (push) Failing after 1m6s
/ playwright (push) Has been skipped
/ depcheck (push) Failing after 2m41s

This commit is contained in:
严浩
2025-03-25 10:39:18 +08:00
parent 2df09cf33f
commit b475a7bbdd
2 changed files with 10 additions and 9 deletions

View File

@ -15,3 +15,13 @@ jobs:
- run: npx taze --help
- run: npx taze
- run: npx taze -a
- run: npx size-limit
- name: 计算构建大小
run: |
echo "📊 构建大小统计:"
echo "----------------------------------------"
echo "🔹 人类可读格式: $(du -sh dist | cut -f1)"
echo "🔹 以MB为单位: $(du -sm dist | cut -f1) MB"
echo "🔹 以KB为单位: $(du -sk dist | cut -f1) KB"
echo "🔹 文件总数: $(find dist -type f | wc -l) 个文件"
echo "----------------------------------------"

View File

@ -18,15 +18,6 @@ jobs:
- run: pnpm run build-only
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: 计算构建大小
run: |
echo "📊 构建大小统计:"
echo "----------------------------------------"
echo "🔹 人类可读格式: $(du -sh dist | cut -f1)"
echo "🔹 以MB为单位: $(du -sm dist | cut -f1) MB"
echo "🔹 以KB为单位: $(du -sk dist | cut -f1) KB"
echo "🔹 文件总数: $(find dist -type f | wc -l) 个文件"
echo "----------------------------------------"
- name: 部署到 Surge
id: surge_deploy
if: ${{ github.actor != 'nektos/act' }} # https://nektosact.com/usage/index.html#skipping-steps