Skip to content
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

fix(scripts): bump playground in release process #690

Merged
merged 4 commits into from
Jun 14, 2022

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Jun 14, 2022

🧭 What and Why

🎟 JIRA Ticket: -

Changes included:

  • Updates the release script to update the package.json of the JavaScript playground when running the release script.
  • Add npmNamespace to the clients config
    • it was needed to avoid hardcoded npm namespaces for the compute the utils package namespace, if you feel like it's not necessary for the gen I can remove it

🧪 Test

  • CI :D
  • Run yarn release from this PR

@shortcuts shortcuts self-assigned this Jun 14, 2022
@netlify
Copy link

netlify bot commented Jun 14, 2022

Deploy Preview for api-clients-automation ready!

Name Link
🔨 Latest commit 41ef806
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/62a8ab078bafd4000803d1bd
😎 Deploy Preview https://deploy-preview-690--api-clients-automation.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@algolia-bot
Copy link
Collaborator

algolia-bot commented Jun 14, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

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.

Nice improvement, less repetition !

@@ -13,6 +13,7 @@
},
"javascript": {
"folder": "clients/algoliasearch-client-javascript",
"npmNamespace": "@experimental-api-clients-automation",
Copy link
Collaborator

Choose a reason for hiding this comment

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

maybe you can simplify packageName in openapitools.json to only be the package name without the @experimental-api-clients-automation

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea! let's see if it does the thing 5942a5c

Copy link
Member Author

Choose a reason for hiding this comment

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

we could even do more magic by guessing it from the output path but will see

Copy link
Member Author

@shortcuts shortcuts Jun 14, 2022

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

ah didn't even see buildFile variable lol, it's better like that

Copy link
Member Author

@shortcuts shortcuts Jun 14, 2022

Choose a reason for hiding this comment

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

yup!! i'm trying to guess it from the path and we can remove additionalProperties :D

edit: ah no we still need the version

scripts/release/updateAPIVersions.ts Outdated Show resolved Hide resolved
@shortcuts shortcuts force-pushed the fix/scripts-bump-playground branch 3 times, most recently from 705ec0b to ef24b00 Compare June 14, 2022 14:07
@shortcuts shortcuts force-pushed the fix/scripts-bump-playground branch from ef24b00 to 9fb7927 Compare June 14, 2022 14:09
@shortcuts shortcuts requested a review from millotp June 14, 2022 15:37
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.

this is black magic, the file openapitools.json went from +600 lines at first to 115, this is awesome

@shortcuts shortcuts merged commit 7137033 into main Jun 14, 2022
@shortcuts shortcuts deleted the fix/scripts-bump-playground branch June 14, 2022 15:49
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