Skip to content

fix: 修正 GitHub Pages 部署目标为 test-app 示例#32

Merged
sansi-lcj merged 2 commits intomainfrom
fix/deploy-test-app-examples
Jan 19, 2026
Merged

fix: 修正 GitHub Pages 部署目标为 test-app 示例#32
sansi-lcj merged 2 commits intomainfrom
fix/deploy-test-app-examples

Conversation

@sansi-lcj
Copy link
Member

问题

之前的配置错误地将 TypeDoc 生成的 API 文档部署到 GitHub Pages,但实际应该部署的是 test-app 的打包示例。

修正内容

修改 .github/workflows/docs.yml

之前(错误):

  • 工作流名称: Deploy Documentation
  • 构建命令: pnpm run docs (生成 API 文档)
  • 部署路径: ./packages/vreo/docs (API 文档)

现在(正确):

  • 工作流名称: Deploy Examples
  • 构建命令: pnpm test:build (构建示例应用)
  • 部署路径: ./packages/test-app/dist (示例页面)

test-app 包含的示例

打包后的 dist 目录包含以下示例页面:

  • index.html - 基础播放器示例
  • index-react.html - React 组件示例
  • index-react-dynamic.html - 动态加载示例
  • index-react-partial.html - 部分加载示例
  • index-react-playController.html - PlayController 示例

测试

  • ✅ 本地验证 pnpm test:build 成功
  • ✅ 确认输出目录为 packages/test-app/dist
  • ⏳ 合并后 GitHub Actions 将自动部署示例到 GitHub Pages

相关

这是对 #31 的修正。

- 改为构建和部署 test-app 的打包示例
- 部署路径从 packages/vreo/docs 改为 packages/test-app/dist
- 工作流名称更新为 Deploy Examples
- 示例包含:index.html, index-react.html 等多个示例页面
- 构建的 lib 使用 babel transform-runtime 插件
- 需要 @babel/runtime 作为运行时依赖
- 修复 test-app 构建时无法解析 babel runtime helpers 的问题
@sansi-lcj sansi-lcj merged commit 8fcb207 into main Jan 19, 2026
3 of 4 checks passed
@sansi-lcj sansi-lcj deleted the fix/deploy-test-app-examples branch January 19, 2026 06:04
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.

1 participant

Comments