Skip to content

Commit

Permalink
chore: fix scheduled release JS package bump (#742)
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcuts committed Jun 24, 2022
1 parent 98b6a74 commit 18477b8
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions scripts/release/updateAPIVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
LANGUAGES,
MAIN_BRANCH,
gitBranchExists,
CI,
} from '../common';
import {
getClientsConfigField,
Expand Down Expand Up @@ -206,10 +207,13 @@ export async function updateAPIVersions(
After that, we generate clients with new versions. And then, we copy all of them over to JS repository.
*/
if (lang === 'javascript') {
await run(`yarn release:bump ${releaseType}`, {
verbose: true,
cwd: getLanguageFolder(lang),
});
const cwd = getLanguageFolder(lang);

if (CI) {
await run('yarn install', { verbose: true, cwd });
}

await run(`yarn release:bump ${releaseType}`, { verbose: true, cwd });
}

await updateChangelog({
Expand Down

0 comments on commit 18477b8

Please sign in to comment.