From 3b35c38f6f5b55d2b4294b06be1a4144c56e0784 Mon Sep 17 00:00:00 2001 From: Sofia Leon Date: Fri, 11 Nov 2022 02:08:37 -0800 Subject: [PATCH] build: add release-please config, fix owlbot-config --- .release-please-manifest.json | 1 + .../{.github => }/.OwlBot.yaml | 10 ++++------ .../.repo-metadata.json | 4 ++-- .../google-cloud-workflows-executions/owlbot.py | 4 ++-- .../google-cloud-workflows-executions/package.json | 13 +++++++++---- release-please-config.json | 3 ++- 6 files changed, 20 insertions(+), 15 deletions(-) rename packages/google-cloud-workflows-executions/{.github => }/.OwlBot.yaml (70%) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index c38b0a70276..f5fccadd289 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -34,6 +34,7 @@ "packages/google-cloud-texttospeech": "4.0.4", "packages/google-cloud-translate": "7.0.4", "packages/google-cloud-videointelligence": "4.1.1", + "packages/google-cloud-workflows-executions": "2.2.0", "packages/google-container": "4.4.0", "packages/google-devtools-artifactregistry": "2.0.2", "packages/google-iam": "0.2.2", diff --git a/packages/google-cloud-workflows-executions/.github/.OwlBot.yaml b/packages/google-cloud-workflows-executions/.OwlBot.yaml similarity index 70% rename from packages/google-cloud-workflows-executions/.github/.OwlBot.yaml rename to packages/google-cloud-workflows-executions/.OwlBot.yaml index e74b1223f65..28f7fbb59b2 100644 --- a/packages/google-cloud-workflows-executions/.github/.OwlBot.yaml +++ b/packages/google-cloud-workflows-executions/.OwlBot.yaml @@ -11,14 +11,12 @@ # 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/workflows/executions/(.*)/.*-nodejs/(.*) - dest: /owl-bot-staging/$1/$2 - - source: /google/cloud/workflows/(.*)/.*-nodejs/(.*) - dest: /owl-bot-staging/$1/$2 + - source: /google/cloud/workflows/executions/(.*)/.*-nodejs + dest: /owl-bot-staging/google-cloud-workflows-executions/$1 + - source: /google/cloud/workflows/(.*)/.*-nodejs + dest: /owl-bot-staging/google-cloud-workflows-executions/$1 diff --git a/packages/google-cloud-workflows-executions/.repo-metadata.json b/packages/google-cloud-workflows-executions/.repo-metadata.json index a5e3b1ca808..dc6d0f90e11 100644 --- a/packages/google-cloud-workflows-executions/.repo-metadata.json +++ b/packages/google-cloud-workflows-executions/.repo-metadata.json @@ -3,10 +3,10 @@ "name_pretty": "Workflows", "product_documentation": "https://cloud.google.com/workflows/docs/", "client_documentation": "https://cloud.google.com/nodejs/docs/reference/workflows/latest", - "issue_tracker": "https://github.com/googleapis/nodejs-workflows/issues", + "issue_tracker": "https://github.com/googleapis/google-cloud-node/issues", "release_level": "stable", "language": "nodejs", - "repo": "googleapis/nodejs-workflows", + "repo": "googleapis/google-cloud-node", "distribution_name": "@google-cloud/workflows", "api_id": "workflows.googleapis.com", "requires_billing": true, diff --git a/packages/google-cloud-workflows-executions/owlbot.py b/packages/google-cloud-workflows-executions/owlbot.py index cc2287ab2e5..66c2b868111 100644 --- a/packages/google-cloud-workflows-executions/owlbot.py +++ b/packages/google-cloud-workflows-executions/owlbot.py @@ -16,12 +16,12 @@ import os import synthtool as s import synthtool.gcp as gcp -import synthtool.languages.node as node +import synthtool.languages.node_mono_repo as node import json import logging from pathlib import Path import shutil -node.owlbot_main(templates_excludes=["src/index.ts"], staging_excludes=["src/v1/index.ts", "src/v1beta/index.ts", "src/index.ts", "README.md", "package.json"]) +node.owlbot_main(relative_dir="packages/google-cloud-workflows-executions",templates_excludes=["src/index.ts"], staging_excludes=["src/v1/index.ts", "src/v1beta/index.ts", "src/index.ts", "README.md", "package.json"]) shutil.rmtree('v1', ignore_errors=True) shutil.rmtree('v1beta', ignore_errors=True) diff --git a/packages/google-cloud-workflows-executions/package.json b/packages/google-cloud-workflows-executions/package.json index 17ae8b2ad37..8e502ed5a92 100644 --- a/packages/google-cloud-workflows-executions/package.json +++ b/packages/google-cloud-workflows-executions/package.json @@ -2,7 +2,11 @@ "name": "@google-cloud/workflows", "version": "2.2.0", "description": "Workflows client for Node.js", - "repository": "googleapis/nodejs-workflows", + "repository": { + "type": "git", + "directory": "packages/google-cloud-workflows-executions", + "url": "https://github.com/googleapis/google-cloud-node.git" + }, "license": "Apache-2.0", "author": "Google LLC", "main": "build/src/index.js", @@ -34,8 +38,8 @@ "lint": "gts check", "prelint": "cd samples; npm link ../; npm i", "prepare": "npm run compile-protos && npm run compile", - "system-test": "c8 mocha --exit build/system-test", - "samples-test": "cd samples/ && npm link ../ && npm test", + "system-test": "npm run compile && c8 mocha build/system-test", + "samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test", "test": "c8 mocha build/test", "pretest": "npm run prepare" }, @@ -63,5 +67,6 @@ }, "engines": { "node": ">=12.0.0" - } + }, + "homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-workflows-executions" } diff --git a/release-please-config.json b/release-please-config.json index ca8fb90627b..2531e83250a 100644 --- a/release-please-config.json +++ b/release-please-config.json @@ -35,6 +35,7 @@ "packages/google-cloud-texttospeech": {}, "packages/google-cloud-translate": {}, "packages/google-cloud-videointelligence": {}, + "packages/google-cloud-workflows-executions": {}, "packages/google-container": {}, "packages/google-devtools-artifactregistry": {}, "packages/google-iam": {}, @@ -49,4 +50,4 @@ } ], "release-type": "node" -} \ No newline at end of file +}