Skip to content

Commit e2fb4c2

Browse files
committed
add branch back in
1 parent 35cfe18 commit e2fb4c2

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

openapi/publish.js

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ async function updateSpecs() {
5151
process.exit(1);
5252
}
5353

54-
for (specFile of [filenames[0]]) {
54+
for (specFile of filenames) {
5555
// get ID of each spec by matching title between filename and metadata
5656
const fullPath = path.join(outBase, specFile);
5757
const yamlStr = fs.readFileSync(fullPath, "utf8");
@@ -67,7 +67,16 @@ async function updateSpecs() {
6767
await execAndLog('npx', ['[email protected]', 'openapi:validate', fullPath]);
6868
// publish the json version
6969
await execAndLog(
70-
'npx', ['[email protected]', 'openapi', 'upload', `${fullPath}`, `--key=${README_API_KEY}`, `--slug=${specFile}`, `--confirm-overwrite`],
70+
'npx', [
71+
72+
'openapi',
73+
'upload',
74+
`${fullPath}`,
75+
`--key=${README_API_KEY}`,
76+
`--slug=${specFile}`,
77+
`--branch=${README_VERSION}`,
78+
`--confirm-overwrite`,
79+
],
7180
);
7281
}
7382
}

0 commit comments

Comments
 (0)