Skip to content
New issue

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

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

Already on GitHub? # to your account

Replace release-it with custom release script #1266

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

elpoelma
Copy link
Contributor

@elpoelma elpoelma commented Mar 4, 2025

Overview

This PR replaces the release-it release flow by a custom release script which uses changesets.

The release script may do the following operations:

  • Version the packages
  • Commit the versioned packages
  • Tag the versioned packages
  • Push to a git forge
  • Create github releases for the newly created tags (using octokit)

How to test/reproduce

I made a small playground repo on https://github.com/elpoelma/changesets-playground.
Feel free to fork it, and test out the scripts there.
As for this repo, we'll see how it goes for the next release 😄

Challenges/uncertainties

  • There are certainly improvements to be made in the error handling of this script
  • I will probably package the script as a separate package once it has been tested out a bit.
  • At the moment, I hardcoded the package-name in the woodpecker release pipeline. In the future we will probably want to replace the release and release-next steps by a single release step which runs changeset publish (this command automatically adds npm next tags if necessary)
  • I did not yet adjust the release-commit strategy, but we might want to use SNAPSHOT releases in the future for this.

Checks PR readiness

  • npm lint
  • no new deprecations

@elpoelma elpoelma added the internal Version bumps, chores, tooling label Mar 4, 2025
@elpoelma elpoelma marked this pull request as draft March 4, 2025 10:43
@elpoelma elpoelma marked this pull request as ready for review March 4, 2025 10:50
@elpoelma elpoelma self-assigned this Mar 4, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
internal Version bumps, chores, tooling
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant