You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

The NPM actions in Continua are a wrapper around the NPM command line. If you're having trouble using any of the NPM actions, please refer to the NPM Command Line Reference.

The NPM Pack action is used to build NPM packages for publishing to a registry. 

Name

A friendly name for this action (will be displayed in the actions workflow area).

Enabled

Determines if this action will be run within the relevant stage.

Target Directory

Where to install the package. Relative paths will be anchored to the workspace folder.

Package Location Type

The type of package location. This can be a directory, file, URL or definition which describes the location of the npm package to build.

Package Folder

This input box is displayed if you choose Directory for the Package Location Type. Enter the path to the folder which contains the package.json file describing the package.

Package File

This input box is displayed if you choose File for the Package Location Type. Enter the path to a gzipped tarball containing the NPM package to build.

Package URL

This input box is displayed if you choose Url for the Package Location Type. Enter the Url to a gzipped tarball or Git repository containing the NPM package to install. You can enter a http or https URL or one of the following special URL formats for accessing Git repositories.

  • <protocol>://[<user>[:<password>]@]<hostname>[:<port>][:/]<path>[#<commit-ish>] where protocol is one of  git ,  git+ssh ,  git+http , or  git+https
  • <githubname>/<githubrepo>[#<commit-ish>] or github:<githubname>/<githubrepo>[#<commit-ish>] for installing packages from github.com repositories
  • gist:[<githubname>/]<gistID>[#<commit-ish>] for installing packages uploaded to gist.github.com
  • bitbucket:<bitbucketname>/<bitbucketrepo>[#<commit-ish>] for installing packages from bitbucket.org repositories
  • gitlab:<gitlabname>/<gitlabrepo>[#<commit-ish>] for installing packages from gitlab.com repositories

where <commit-ish> indicates a commit hash, branch or tag name. This defaults to master.

 

 

 

 

 

  • No labels