跳到正文
AI NEWS JOURNAL
VercelAI NEWS / JOURNAL

Vercel CI now supports public GitHub repositories

Vercel CI now supports public GitHub repositories with the same setup and task configuration as private ones. Users can enable CI via 'vercel ci enable' and tag tasks in turbo.json for CI execution. On push, only affected, uncached tasks tagged 'ci' are run, leveraging caching. For pull requests from forks, manual approval is required in the Vercel dashboard before CI runs due to security constraints.

翻译服务暂未运行,当前显示原文。

Vercel CI now supports public GitHub repositories. Setup and task configuration work the same way as for private repositories. From a local clone of your repository, run: vercel ci enable Enable Vercel CI for the repository. In turbo.json, tag the tasks you want to run in Vercel CI: { "tasks": { "build": { "dependsOn": ["^build"] }, "test": { "dependsOn": ["^build"], "tags": ["ci"] } }} Tag test for CI and declare the builds it depends on. On each push, Vercel CI runs affected, uncached tasks tagged ci and any dependencies they need. It reuses cached results and skips unaffected tasks. For pull requests from forks, Vercel CI does not run automatically, since fork code would otherwise run with the repository’s CI permissions. The pull request’s Vercel CI check shows that approval is required and links to the approval page in the Vercel dashboard. A team member must approve each attempt on a fork pull request before it runs with the team’s CI permissions. Learn more in the CI documentation.

资料来源

阅读原文 ↗
← 继续阅读全部动态