Skip to content

Commit 18477b8

Browse files
authored
chore: fix scheduled release JS package bump (#742)
1 parent 98b6a74 commit 18477b8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

scripts/release/updateAPIVersions.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
LANGUAGES,
1717
MAIN_BRANCH,
1818
gitBranchExists,
19+
CI,
1920
} from '../common';
2021
import {
2122
getClientsConfigField,
@@ -206,10 +207,13 @@ export async function updateAPIVersions(
206207
After that, we generate clients with new versions. And then, we copy all of them over to JS repository.
207208
*/
208209
if (lang === 'javascript') {
209-
await run(`yarn release:bump ${releaseType}`, {
210-
verbose: true,
211-
cwd: getLanguageFolder(lang),
212-
});
210+
const cwd = getLanguageFolder(lang);
211+
212+
if (CI) {
213+
await run('yarn install', { verbose: true, cwd });
214+
}
215+
216+
await run(`yarn release:bump ${releaseType}`, { verbose: true, cwd });
213217
}
214218

215219
await updateChangelog({

0 commit comments

Comments
 (0)