From c78af186ce194bc47229e48f127bc52e630010a1 Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sat, 9 May 2020 07:43:29 -0700 Subject: [PATCH] build: address nightly regen failures (#2088) --- package.json | 1 - src/generator/synth.ts | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a1941890cb..83b07661be 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,6 @@ "fix": "gts fix", "pregenerate": "npm run build-tools", "generate": "node build/src/generator/generate.js", - "postgenerate": "npm run fix", "docs-test": "linkinator docs", "predocs-test": "npm run docs", "submit-prs": "node build/src/generator/synth.js", diff --git a/src/generator/synth.ts b/src/generator/synth.ts index 99aa983788..791e0858d9 100644 --- a/src/generator/synth.ts +++ b/src/generator/synth.ts @@ -39,6 +39,7 @@ async function main() { const title = `feat(${dir}): update the API`; await execa('git', ['checkout', '-B', branch]); await execa('git', ['add', path.join('src/apis', dir)]); + await execa('git', ['add', `discovery/${dir}-*`]); await execa('git', ['commit', '-m', title]); await execa('git', ['push', 'origin', branch, '--force']); await gaxios.request({