Skip to content

Make the Changesets release workflow safer and easier to maintain #2321

Description

@Shurtu-gal

The current release-with-changesets flow has release logic spread across workflows and scripts. GitHub releases can be created before npm publishing finishes, and retries can miss a release when npm publishing succeeded but a later step failed.

We need a clearer release flow with secure publishing and reliable retries.

Scope:

  • Separate version PRs, validation, npm publishing and GitHub releases.
  • Publish and verify npm packages before creating GitHub releases.
  • Use pinned actions, locked dependencies, minimum permissions and npm trusted publishing.
  • Recover partial releases on rerun without duplicate releases or incorrect tags.
  • Make sure workspace package releases and prereleases do not trigger CLI production deployments.
  • Add dry-run checks, failure/retry tests and setup documentation.

Start with stable releases from master for CLI, diff and optimizer. Other release branches need an agreed policy before enabling them. Package-manager migration stays separate.

Activity

  1. self-assigned this
    on Oct 13, 2026
  2. added
    enhancement
    area/ci-cd
    on Oct 13, 2026
  3. Shurtu-gal commented on Oct 13, 2026

    @Shurtu-gal
    CollaboratorAuthor

    Planning to submit this for the next Microgrant round as Advanced / DevOps. This takes priority over downgrade support because it addresses release-workflow security issues and supports Prince's diff/optimizer consolidation work: #2303 and asyncapi/optimizer#303, under asyncapi/community#3495.

    Especially since we are currently using a outer JS script.

    Scope:

    • Separate version PRs, validation, npm publishing and GitHub releases.
    • Pin actions, restrict permissions and isolate publishing credentials from builds and dependency scripts.
    • Verify npm publication before GitHub releases, with safe recovery on reruns.
    • Handle CLI, diff and optimizer releases without triggering incorrect production deployments.

    Why Advanced: this spans publishing credentials, release ordering, partial-failure recovery and downstream Docker/API delivery across multiple packages. Changing the workflow alone will not cover those paths.

  4. AayushSaini101 commented on Oct 13, 2026

    @AayushSaini101
    Collaborator

    Valid for the Advanced part of the Microgrant

  5. princerajpoot20 commented on Oct 13, 2026

    @princerajpoot20
    Member

    @Shurtu-gal Quick question: We’re done with the optimizer and diff migrations. How about doing this after the remaining bundler migration: asyncapi/bundler#231, which can be completed within this month, so we can pick this up in the next round?

  6. Shurtu-gal commented on Oct 19, 2026

    @Shurtu-gal
    CollaboratorAuthor

    Changeset changes are not coupled with bundler though 🤔
    Current script running situation fails many times and is a bit unsecure also.

  7. Shurtu-gal commented on Oct 19, 2026

    @Shurtu-gal
    CollaboratorAuthor

    I would be working on this issue after @princerajpoot20 confirms above.

  8. princerajpoot20 commented on Oct 19, 2026

    @princerajpoot20
    Member

    @Shurtu-gal Yes, sounds good to me Ashish. They can go in parallel.

  9. added
    microgrant
    on Oct 19, 2026
  10. aeworxet commented on Oct 19, 2026

    @aeworxet
    Contributor

    Microgrant Issue's service comment

    Text labels: microgrant/2026-11, microgrant/advanced, microgrant/devops
    Assignment to regular contributors after: 2026-10-23 00:00:00 UTC+12:00
    End Of Life after: 2026-11-30 23:59:59 UTC-12:00

    @asyncapi/microgrant_team

    The Microgrant Program is not a Mentorship Program. The accepted level of Microgrant Program Participants is Middle/Senior.
    Regular contributors should explain in clear terms how they will approach the resolution process when expressing interest in working on this Microgrant Issue.
    References: Microgrant Program 101, Microgrant Program Rules
  11. aeworxet commented on Oct 19, 2026

    @aeworxet
    Contributor
  12. aeworxet commented on Oct 19, 2026

    @aeworxet
    Contributor

    Microgrant Issue's Assigned Timeline

    Complexity Level Assignment Date (by GitHub) Start Date (by MP Rules) End Date (by MP Rules) Draft PR Submission Final PR Merge Start Final PR Merge End
    Advanced 2026-10-13 2026-11-02 2026-12-27 2026-11-22 2026-12-13 2026-12-27
    Please note that the dates given represent deadlines, not specific dates; so if the goal is reached sooner, it's better.
    Keep in mind the responsibility for violations of the Timeline.

    Assignee: @Shurtu-gal (githubID: 100484401)

  13. moved this to In Progress in Microgrant Programon Oct 19, 2026
  14. moved this from In Progress to Completed in Microgrant Programon Nov 2, 2026
  15. moved this from To Triage to Done in CLI - Kanbanon Nov 2, 2026
  16. Shurtu-gal commented on Nov 2, 2026

    @Shurtu-gal
    CollaboratorAuthor

    @aeworxet This issue has been completed.

  17. aeworxet commented on Nov 2, 2026

    @aeworxet
    Contributor

    Microgrant Issue Is Completed 🎉

    @Shurtu-gal (githubID: 100484401), please go to the dedicated AsyncAPI Microgrant Program 2026-11 page on Open Collective and submit an invoice for USD 400.00 (button 'ACTIONS', dropdown option 'Submit expense') with the expense title Microgrant cli#2321, tag microgrant, and full URL of this Microgrant Issue in the description.

    After submitting the invoice, please post the link to it in this Microgrant Issue as a separate comment to verify the invoice's authorship.

  18. aeworxet commented on Nov 2, 2026

    @aeworxet
    Contributor

    Shurtu-gal
    https://opencollective.com/asyncapi/projects/asyncapi-microgrant-program/expenses/353037

    ✅
    The invoice https://opencollective.com/asyncapi/projects/asyncapi-microgrant-program/expenses/353037 was submitted by @Shurtu-gal (githubID: 100484401), who was the AsyncAPI Microgrant Program 2026-11 Participant and completed the Microgrant Issue cli#2321.

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

Metadata

Metadata

Assignees

Labels

area/ci-cdenhancementmicrograntsecurity

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions