使用 EAS 工作流发布预览更新
了解如何使用 EAS 工作流发布预览更新。
对项目进行更改后,你可以通过发布 预览更新 与你的团队分享更改预览。当你想与团队一起审查更改,而无需拉取最新更改并在本地运行它们时,这非常有用。
¥Once you've made changes to your project, you can share a preview of your changes with your team by publishing a preview update. This is useful when you want to review changes with your team without pulling the latest changes and running them locally.
你可以在开发构建界面中以及通过 EAS 仪表板上的可扫描二维码访问预览更新。在每次提交时发布预览时,你的团队可以查看更改,而无需提取最新更改并在本地运行它们。
¥You can access preview updates in the development build UI and through scannable QR codes on the EAS dashboard. When publishing a preview on every commit, your team can review changes without pulling the latest changes and running them locally.

开始使用
¥Get started
2 requirements
2 requirements
1.
Set up EAS Update
你的项目需要设置 EAS 更新 才能发布预览更新。你可以使用以下方式设置你的项目:
¥Your project needs to have EAS Update setup to publish preview updates. You can set up your project with:
-
eas update:configure
2.
Create new development builds
配置项目后,为每个平台创建新的 开发构建。
¥After you've configured your project, create new development builds for each platform.
以下工作流程会为每个分支上的每次提交发布预览更新。
¥The following workflow publishes a preview update for every commit on every branch.
name: Publish preview update on: push: branches: ['*'] jobs: publish_preview_update: name: Publish preview update type: update params: branch: ${{ github.ref_name || 'test' }}