AIFeed

Vercel CI 现已支持公共 GitHub 仓库

AI summary

Vercel CI 现已支持公共 GitHub 仓库,设置和任务配置方式与私有仓库相同。对于来自 fork 的拉取请求,Vercel CI 不会自动运行,需团队成员在 Vercel 仪表板批准每次尝试后才会以团队的 CI 权限执行。

Translation(model translation, not the source's own text)

Vercel CI 现已支持公开 GitHub 仓库

Vercel CI 现已支持公开 GitHub 仓库。其设置与任务配置方式与私有仓库相同。

在本地克隆的仓库中运行:


        vercel ci enable
      

为该仓库启用 Vercel CI。

在 turbo.json 中,为你想在 Vercel CI 中运行的任务打上标签:


        {  "tasks": {    "build": {      "dependsOn": ["^build"]    },    "test": {      "dependsOn": ["^build"],      "tags": ["ci"]    }  }}
      

为 test 打上 CI 标签,并声明它所依赖的 build。

每次推送时,Vercel CI 会运行受影响的、未缓存的、带有 ci 标签的任务及其所需的依赖项。它会复用缓存结果,并跳过未受影响的任务。

对于来自 fork 的拉取请求,Vercel CI 不会自动运行,否则 fork 代码将以该仓库的 CI 权限运行。

该拉取请求的 Vercel CI 检查会显示需要审批,并链接到 Vercel 仪表板中的审批页面。在 fork 拉取请求以团队的 CI 权限运行之前,团队成员必须对每次尝试进行审批。

在 CI 文档中了解更多。

Only about 593 characters could be extracted — the rest did not come through (common on sites that need scrolling or a login). Read the original for the full piece.

Published by Vercel Blog
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗