用途:该技能用于在 Azure Artifacts 中管理包源(Feed)、版本与依赖,适合发布或管理制品包时使用。
主要能力:创建 Feed(支持 npm、NuGet、Maven、Python 等类型);发布构建产物;进行版本管理;设置访问权限。
使用方式:创建 Feed 可使用命令,例如:az artifacts feed create --name "my-npm-feed" --feed-type npm;NuGet 为 --feed-type nuget,通用包为 --feed-type universal。发布 npm 包可在流水线中使用 Npm@1 任务,设置 command: 'publish'、publishRegistry: 'useFeed' 与 publishFeed。发布 NuGet 包使用 NuGetCommand@2 任务,设置 command: 'push'、packagesToPush、nuGetFeedType: 'internal' 与 publishVstsFeed。通用包发布使用:az artifacts universal publish --organization https://dev.azure.com/myorg --feed my-universal-feed --name my-package --version 1.0.0 --path ./dist。npm 客户端配置可在 .npmrc 中写入 registry 与 always-auth=true。
适用场景:需要在 Azure DevOps 流水线中发布或管理 npm、NuGet、通用包等制品时。
限制:资料仅提供上述示例与命令,未说明具体权限要求、价格、平台细节及完整参数,其他细节暂未提供。版本号为 1.0.0。