Skip to content

Commit

Permalink
build: add release-please config, fix owlbot-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl committed Jan 17, 2023
1 parent f03938c commit c868d12
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 12 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@
"packages/google-cloud-video-stitcher": "0.3.0",
"packages/google-cloud-video-transcoder": "2.3.0",
"packages/google-cloud-videointelligence": "4.1.1",
"packages/google-cloud-vision": "3.1.0",
"packages/google-cloud-vmmigration": "2.2.1",
"packages/google-cloud-vmwareengine": "0.1.0",
"packages/google-cloud-vpcaccess": "2.1.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,14 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
docker:
image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest


deep-remove-regex:
- /owl-bot-staging

deep-copy-regex:
- source: /google/cloud/vision/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2
- source: /google/cloud/vision/(v.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-vision/$1

begin-after-commit-hash: fb91803ccef5d7c695139b22788b309e2197856b

2 changes: 1 addition & 1 deletion packages/google-cloud-vision/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"product_documentation": "https://cloud.google.com/vision",
"api_id": "vision.googleapis.com",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/vision/latest",
"repo": "googleapis/nodejs-vision",
"repo": "googleapis/google-cloud-node",
"release_level": "stable",
"requires_billing": true,
"name_pretty": "Google Cloud Vision API",
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-vision/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"""This script is used to synthesize generated parts of this library."""

import synthtool as s
import synthtool.languages.node as node
import synthtool.languages.node_mono_repo as node
from pathlib import Path

def patch(library: Path):
Expand All @@ -26,7 +26,7 @@ def patch(library: Path):
'export interface ImageAnnotatorClient extends FeaturesMethod {}\n'
)

node.owlbot_main(
node.owlbot_main(relative_dir="packages/google-cloud-vision",
staging_excludes=['src/index.ts', 'package.json'],
templates_excludes=['src/index.ts'],
patch_staging=patch
Expand Down
13 changes: 9 additions & 4 deletions packages/google-cloud-vision/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@
"engines": {
"node": ">=12.0.0"
},
"repository": "googleapis/nodejs-vision",
"repository": {
"type": "git",
"directory": "packages/google-cloud-vision",
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"main": "build/src/index.js",
"types": "build/src/index.d.ts",
"files": [
Expand All @@ -29,10 +33,10 @@
],
"scripts": {
"test": "c8 mocha build/test",
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"lint": "gts check",
"docs": "jsdoc -c .jsdoc.js",
"system-test": "mocha build/system-test --timeout 20000",
"system-test": "npm run compile && c8 mocha build/system-test",
"fix": "gts fix",
"test-no-cover": "mocha test/*.js",
"docs-test": "linkinator docs",
Expand Down Expand Up @@ -72,5 +76,6 @@
"uuid": "^9.0.0",
"webpack": "^5.0.0",
"webpack-cli": "^5.0.0"
}
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-vision"
}
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
"packages/google-cloud-video-stitcher": {},
"packages/google-cloud-video-transcoder": {},
"packages/google-cloud-videointelligence": {},
"packages/google-cloud-vision": {},
"packages/google-cloud-vmmigration": {},
"packages/google-cloud-vmwareengine": {},
"packages/google-cloud-vpcaccess": {},
Expand Down Expand Up @@ -133,4 +134,4 @@
}
],
"release-type": "node"
}
}

0 comments on commit c868d12

Please sign in to comment.