使用此任务可以从 GitHub 安装 npm 包。
语法
# Download Github Npm Package v1
# Install npm packages from GitHub.
- task: DownloadGithubNpmPackage@1
inputs:
packageName: # string. Required. Package Name.
version: # string. Required. Package Version.
externalRegistryCredentials: # string. Alias: externalEndpoints. Required. Credentials for registry from GitHub.
#installDirectory: # string. Alias: packagesDirectory. Destination directory.
输入
packageName
-
包名称
string
。 必填。
指定要从 GitHub 下载的包的名称。
version
-
包版本
string
。 必填。
指定要从 GitHub 下载的包的版本。
externalRegistryCredentials
-
来自 GitHub 的注册表凭据
输入别名: externalEndpoints
.
string
。 必填。
指定要用于 GitHub 外部注册表的凭据。
任务控制选项
除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 控件选项和常见任务属性。
输出变量
没有。