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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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.
Returns | |
---|---|
Type | Description |
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.
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getPackagePath
Path to the package.json.
e.g. workspace/path/to/package
Returns | |
---|---|
Type | Description |
string |
setPackagePath
Path to the package.json.
e.g. workspace/path/to/package
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |