Skip to main content

Canary 版本

介绍

¥Introduction

Playwright for Node.js 有一个 canary 发布系统。

¥Playwright for Node.js has a canary releases system.

它允许你测试新的未发布功能,而不是等待完整发布。它们每天都会以 Playwright 的 next NPM 标签发布。

¥It permits you to test new unreleased features instead of waiting for a full release. They get released daily on the next NPM tag of Playwright.

这是向维护人员提供反馈的好方法,确保新实现的功能按预期工作。

¥It is a good way to give feedback to maintainers, ensuring the newly implemented feature works as intended.

注意

在生产中使用 canary 版本似乎有风险,但实际上并非如此。canary 版本通过了所有自动化测试,并用于测试例如 HTML 报告、跟踪查看器或具有端到端测试的 Playwright 检查器。

¥Using a canary release in production might seem risky, but in practice, it's not. A canary release passes all automated tests and is used to test e.g. the HTML report, Trace Viewer, or Playwright Inspector with end-to-end tests.

npm install -D @playwright/test@next

下一个 npm Dist 标签

¥Next npm Dist Tag

对于 main 上任何与代码相关的提交,持续集成将在 @next npm dist 标签下发布每日 canary 版本。

¥For any code-related commit on main, the continuous integration will publish a daily canary release under the @next npm dist tag.

你可以在 npm 上看到当前的 dist 标签:

¥You can see on npm the current dist tags:

  • latest:稳定版本

    ¥latest: stable releases

  • next:下一个版本,每日发布

    ¥next: next releases, published daily

  • beta:发布分支被削减后,通常是稳定版本发布前一周,每个提交都会在此标签下发布

    ¥beta: after a release-branch was cut, usually a week before a stable release each commit gets published under this tag

使用 Canary 版本

¥Using a Canary Release

npm install -D @playwright/test@next

文档

¥Documentation

稳定版和 next 文档发布于 playwright.dev。要查看 next 文档,请按键盘上的 Shift 5 次。

¥The stable and the next documentation is published on playwright.dev. To see the next documentation, press Shift on the keyboard 5 times.