Skip to content

refactor: 简化构建和一些前端工程 - #62

Merged
pearlwang1106 merged 4 commits into
masterfrom
fix-build-script
Nov 3, 2026
Merged

pearlwang1106 merged 4 commits into
masterfrom
fix-build-script

Conversation

@hustcc

@hustcc hustcc commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

This pull request makes significant updates to the project's documentation, CI/CD workflows, and build outputs, focusing on simplifying the CI pipelines, modernizing Node.js usage, and clarifying the distribution artifacts. The changes remove legacy files and scripts, update references to the UMD build, and streamline the release and deployment processes.

CI/CD Workflow Modernization and Simplification:

  • Removed the benchmark.yml workflow and consolidated CI steps in build.yml, simplifying the project's GitHub Actions setup and focusing on core quality and build checks. [1] [2] [3]
  • Updated all workflows (build.yml, deploy.yml, preview.yml, release.yml) to use Node.js 24 instead of Node.js 20, and removed the workaround for npm version compatibility. [1] [2] [3]
  • Streamlined the release workflow to publish on tag push, removed redundant validation and checks, and simplified npm publish logic.

Documentation and Distribution Updates:

  • Updated all documentation and usage examples to reference the new UMD build output dist/g6-lite.min.js instead of dist/g6-lite.umd.min.js. This includes badge URLs, CDN links, and code snippets in both README.md and README.zh-CN.md. [1] [2] [3] [4] [5] [6] [7] [8]
  • Clarified the build output in documentation: npm run build now generates ESM output, type declarations, and the new UMD build. [1] [2]
  • Removed the CNAME file and outdated project documentation files (AGENTS.md, CHANGELOG.md, .size-limit.mjs) to reflect current branding, publishing, and maintenance practices. [1] [2] [3] [4]

Other Cleanups:

  • Removed references to the benchmark script from CONTRIBUTING.md, reflecting the removal of the benchmark workflow.
  • Cleaned up permissions and job names in workflow files for clarity and best practices. [1] [2] [3]

These changes collectively modernize the project's infrastructure, clarify its usage and distribution, and remove outdated or redundant files and processes.

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://antvis-G6Lite-site-preview-pr-62.surge.sh
📝 Commita36fa95
⏱️ Build time0.011s
📦 Size79.6 MB · 3001 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ a36fa95 · antvis-G6Lite-site-preview-pr-62.surge.sh (open ↗) · 2026-11-03 03:09:07 UTC

🤖 Powered by surge-preview

- 合并质量检查与测试到单一构建流程
- 移除 UMD 构建、size-limit 及 playground 检查
- 发布流程改为基于 git tag 触发
- 更新文档中的 UMD 产物引用为 g6-lite.min.js
- 将测试步骤移至构建之前
- 新增包体积限制检查步骤
@antvis antvis deleted a comment from github-actions Bot Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

✅ Preview is ready!

PR preview ✅ Ready ✅ Ready
🔗 Preview https://antvis-G6Lite-preview-pr-62.surge.sh
📝 Commitbfc1c82
⏱️ Build time0.011s
📦 Size79.6 MB · 3001 files
🪵 LogsView logs
📱 MobileScan to open preview on mobile

↩️ Previous: ⚡️ bfc1c82 · antvis-G6Lite-preview-pr-62.surge.sh (open ↗) · 2026-11-03 03:41:47 UTC

🤖 Powered by surge-preview

@pearlwang1106
pearlwang1106 merged commit 6fec8e8 into master Nov 3, 2026
3 checks passed
@pearlwang1106
pearlwang1106 deleted the fix-build-script branch November 3, 2026 03:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants