Skip to content

feat: migrate @asyncapi/optimizer into the cli - #2298

Merged
Shurtu-gal merged 10 commits into
asyncapi:masterfrom
princerajpoot20:optimizer-migration
Sep 20, 2026
Merged

Shurtu-gal merged 10 commits into
asyncapi:masterfrom
princerajpoot20:optimizer-migration

Conversation

@princerajpoot20

@princerajpoot20 princerajpoot20 commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

@changeset-bot

changeset-bot Bot commented Sep 15, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: da8526e

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@asyncapi/optimizer Major
@asyncapi/cli Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-project-automation github-project-automation Bot moved this to To Triage in CLI - Kanban Sep 15, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@Shurtu-gal Shurtu-gal changed the title chore: migrate @asyncapi/optimizer into the cli feat: migrate @asyncapi/optimizer into the cli Sep 16, 2026

@Shurtu-gal Shurtu-gal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Some questions:

  1. Any reason for capitalized folder names?
  2. Is github action and server-api still working as intended?

@sonarqubecloud

Copy link
Copy Markdown

@princerajpoot20

princerajpoot20 commented Sep 19, 2026 •

Copy link
Copy Markdown
Member Author

@Shurtu-gal

Any reason for capitalized folder names?

  • Renamed folder names.

GitHub Action image:

The Action Dockerfile now copies packages/ so @asyncapi/optimizer resolves inside the image.

Evidence:

  1. This PR’s test-optimize job already builds github-action/Dockerfile and runs command: optimize.
  2. Local build also succeeded: docker build -f github-action/Dockerfile -t asyncapi/github-action-for-cli:local . → (26/26) FINISHED.
Screenshot 2026-09-20 at 2 37 05 AM Screenshot 2026-09-20 at 2 36 57 AM

GitHub Action version bump:

Also is github action getting accordingly bumped?

action.yml staying on 6.1.0 in this PR is expected. We should not bump the tag here, or users would pull github-action-for-cli:6.2.0 before that image exists.

The bump is already wired for the Version Packages PR:

  • bump:version = changeset version && npm run bump:github-action
  • that script copies action-template.yml → action.yml and replaces ${ version } with package.json’s version

So action.yml is overwritten on release.

Server API:

Is github action and server-api still working as intended?

Yes, it still works as before.
Checked locally after the change:

Screenshot 2026-09-20 at 2 18 21 AM Screenshot 2026-09-20 at 2 19 15 AM

Direct publish

Not sure if direct publish should be made?

No, we are not using a direct root npm publish.

That command only publishes @asyncapi/cli. This PR also needs to publish @asyncapi/optimizer.

So this PR uses changeset publish instead. That publishes both packages.

changeset-bot on this PR already lists them: @asyncapi/optimizer (major) and @asyncapi/cli (minor).

Screenshot 2026-09-20 at 2 34 26 AM

Have you tried the workflow and is it working?

The Changesets release workflow will be tested once this PR is merged. We can then verify that both packages published with the correct versions.

@Shurtu-gal Shurtu-gal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Okay, let's see the release in action once and fix if things go wrong.

@github-project-automation github-project-automation Bot moved this from To Triage to Backlog in CLI - Kanban Sep 20, 2026
@Shurtu-gal
Shurtu-gal merged commit cce4855 into asyncapi:master Sep 20, 2026
22 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in CLI - Kanban Sep 20, 2026
@github-actions github-actions Bot added the microgrant Participation in the Microgrant Program label Sep 22, 2026
@aeworxet

Copy link
Copy Markdown
Contributor

@asyncapi/microgrant_team

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

microgrant Participation in the Microgrant Program

Projects

Status: Done
Status: Completed

Development

Successfully merging this pull request may close these issues.

[Community Goal 2026] [S1] Move optimizer into the CLI

4 participants