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 25, 2023
1 parent 63fef5f commit bcb440a
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 @@ -95,6 +95,7 @@
"packages/google-cloud-securitycenter": "7.1.0",
"packages/google-cloud-servicedirectory": "4.0.5",
"packages/google-cloud-shell": "2.0.4",
"packages/google-cloud-speech": "5.2.0",
"packages/google-cloud-talent": "5.0.1",
"packages/google-cloud-tasks": "3.0.5",
"packages/google-cloud-texttospeech": "4.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,13 @@
# 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/speech/(v.*)/.*-nodejs/(.*)
dest: /owl-bot-staging/$1/$2
- source: /google/cloud/speech/(v.*)/.*-nodejs
dest: /owl-bot-staging/google-cloud-speech/$1

begin-after-commit-hash: f43939eac6a0bb5998c1fa0f79063194e699230e

2 changes: 1 addition & 1 deletion packages/google-cloud-speech/.repo-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"issue_tracker": "https://issuetracker.google.com/savedsearches/559758",
"release_level": "stable",
"language": "nodejs",
"repo": "googleapis/nodejs-speech",
"repo": "googleapis/google-cloud-node",
"distribution_name": "@google-cloud/speech",
"api_id": "speech.googleapis.com",
"requires_billing": false,
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-speech/owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
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
Expand All @@ -35,4 +35,4 @@ def patch(library: Path):
'// eslint-disable-next-line @typescript-eslint/no-empty-interface\n' +
'export interface SpeechClient extends ImprovedStreamingClient {}\n'
)
node.owlbot_main(templates_excludes=["src/index.ts"], patch_staging=patch)
node.owlbot_main(relative_dir="packages/google-cloud-speech",templates_excludes=["src/index.ts"], patch_staging=patch)
13 changes: 9 additions & 4 deletions packages/google-cloud-speech/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-speech",
"repository": {
"type": "git",
"directory": "packages/google-cloud-speech",
"url": "https://github.com/googleapis/google-cloud-node.git"
},
"main": "./build/src/index.js",
"files": [
"build/protos",
Expand All @@ -31,8 +35,8 @@
"scripts": {
"docs": "jsdoc -c .jsdoc.js",
"lint": "gts check",
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../",
"system-test": "c8 mocha build/system-test/*.js --timeout 600000",
"samples-test": "npm run compile && cd samples/ && npm link ../ && npm i && npm test",
"system-test": "npm run compile && c8 mocha build/system-test",
"test": "c8 mocha build/test/*.js",
"fix": "gts fix",
"docs-test": "linkinator docs",
Expand Down Expand Up @@ -72,5 +76,6 @@
"typescript": "^4.6.4",
"webpack": "^5.0.0",
"webpack-cli": "^5.0.0"
}
},
"homepage": "https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-speech"
}
3 changes: 2 additions & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"packages/google-cloud-securitycenter": {},
"packages/google-cloud-servicedirectory": {},
"packages/google-cloud-shell": {},
"packages/google-cloud-speech": {},
"packages/google-cloud-talent": {},
"packages/google-cloud-tasks": {},
"packages/google-cloud-texttospeech": {},
Expand Down Expand Up @@ -134,4 +135,4 @@
}
],
"release-type": "node"
}
}

0 comments on commit bcb440a

Please sign in to comment.