แก้ไข

แชร์ผ่าน


DownloadGithubNpmPackage@1 - Download Github Npm Package v1 task

Use this task to install npm packages from GitHub.

Syntax

# 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.

Inputs

packageName - Package Name
string. Required.

Specifies the name of the package to download from GitHub.


version - Package Version
string. Required.

Specifies the version of the package to download from GitHub.


externalRegistryCredentials - Credentials for registry from GitHub
Input alias: externalEndpoints. string. Required.

Specifies the credentials to use for external registry from GitHub.


installDirectory - Destination directory
Input alias: packagesDirectory. string.

Specifies the folder where packages are installed. If no folder is specified, packages are restored into the default system working directory.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands Self-hosted agents must have capabilities that match the following demands to run jobs that use this task: npm
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.144.0 or greater
Task category Package
Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands Self-hosted agents must have capabilities that match the following demands to run jobs that use this task: npm
Capabilities This task does not satisfy any demands for subsequent tasks in the job.
Command restrictions Any
Settable variables Any
Agent version 2.115.0 or greater
Task category Package