Reference documentation and code samples for the Google Cloud Build V1 Client class NpmPackage.
Npm package to upload to Artifact Registry upon successful completion of all build steps.
Generated from protobuf message google.devtools.cloudbuild.v1.Artifacts.NpmPackage
Namespace
Google \ Cloud \ Build \ V1 \ ArtifactsMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ repository
string
Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
↳ package_path
string
Path to the package.json. e.g. workspace/path/to/package
getRepository
Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
string
setRepository
Artifact Registry repository, in the form "https://$REGION-npm.pkg.dev/$PROJECT/$REPOSITORY" Npm package in the workspace specified by path will be zipped and uploaded to Artifact Registry with this location as a prefix.
var
string
$this
getPackagePath
Path to the package.json.
e.g. workspace/path/to/package
string
setPackagePath
Path to the package.json.
e.g. workspace/path/to/package
var
string
$this