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 Nov 11, 2022
1 parent 27268ce commit 3b35c38
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 15 deletions.
1 change: 1 addition & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-workflows-executions/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

13 changes: 9 additions & 4 deletions packages/google-cloud-workflows-executions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -63,5 +67,6 @@
},
"engines": {
"node": ">=12.0.0"
}
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-workflows-executions"
}
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {},
Expand All @@ -49,4 +50,4 @@
}
],
"release-type": "node"
}
}

0 comments on commit 3b35c38

Please sign in to comment.