Skip to content

fix(scripts): dart and js releases [skip-bc] #4104

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 14, 2024
Merged

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Nov 14, 2024

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/DI-3212

Changes included:

  • add a check to avoid releasing undefined versions of dart
  • drop lerna for version bumping as it doesn't support mixed package stage (stable and pre-release) bumps nor filtering on package bumps (e.g. bumping stable then bumping pre-releases with different release type)
    • we now list every packages with lerna then use yarn directly to bump the version based on the releaseType

also move dart and js custom logic to their own file because it became a mess in that release script file

Test:

run yarn cli release -b -d and see dart properly bumped, javascript as well

@shortcuts shortcuts self-assigned this Nov 14, 2024
@shortcuts shortcuts requested a review from a team as a code owner November 14, 2024 11:24
@shortcuts shortcuts requested review from Fluf22 and millotp November 14, 2024 11:24
@algolia-bot
Copy link
Collaborator

algolia-bot commented Nov 14, 2024

No code generated

If you believe code should've been generated, please, report the issue.

📊 Benchmark results

Benchmarks performed on the method using a mock server, the results might not reflect the real-world performance.

Language Req/s
javascript 1635
go 1616
php 1460
csharp 1304
java 1140
python 1042
ruby 913
swift 759

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing changed here, just moved the code

Comment on lines +61 to 64
if (lang === 'javascript' && releaseType) {
setVerbose(CI);
await run(`yarn install && yarn release:bump ${releaseType}`, {
cwd: getLanguageFolder(lang),
});
await updateJavaScriptPackages(releaseType);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

except the code move, this was the only change

@shortcuts shortcuts changed the title fix(scripts): dart and js releases fix(scripts): dart and js releases [skip-bc] Nov 14, 2024
Copy link
Collaborator

@millotp millotp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gg

@shortcuts shortcuts merged commit 66acf19 into main Nov 14, 2024
28 checks passed
@shortcuts shortcuts deleted the fix/dart-and-js-releases branch November 14, 2024 12:42
algolia-bot added a commit to algolia/algoliasearch-client-javascript that referenced this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants