Skip to content

chore: add release-please - #197

Merged
gadomski merged 7 commits into
mainfrom
release-please/bootstrap/default
Jan 26, 2026
Merged

gadomski merged 7 commits into
mainfrom
release-please/bootstrap/default

Conversation

@gadomski

@gadomski gadomski commented Jan 24, 2026 •

Copy link
Copy Markdown
Contributor

Add release-please to manage cutting new releases, if you want it. Actual publishing will still be handled by the existing release workflow. Commits will have to follow conventional commit for the bot to work properly, so I added that check as well.

Closes #149

Comment thread .github/workflows/pr.yml Resolved
@kylebarron

Copy link
Copy Markdown
Member

Thanks! Can you explain what this does and how this differs from existing behavior?

It just manages the Changelog creation? Right now I make the changelog manually and just update the version number in the version key of each package.json.

What do you mean bootstrap releases for path:?

Would you be able to add a line or two of description to

## Publishing
Publishing happens automatically when you push a new tag to the `main` branch with format `v*`.
You must be part of the "release" environment in the repository settings to publish a new version.

@kylebarron

kylebarron commented Jan 26, 2026 •

Copy link
Copy Markdown
Member

I assume this will close #149; it'll fail CI if the PR doesn't have conventional commit syntax right?

@gadomski gadomski changed the title chore: bootstrap releases for path: . chore: add release-please Jan 26, 2026
@gadomski

gadomski commented Jan 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks! Can you explain what this does and how this differs from existing behavior?
It just manages the Changelog creation? Right now I make the changelog manually and just update the version number in the version key of each package.json.

When a new commit hits main, the release-please job will:

  1. Scan your commit history for all changes since the last release, using the commit title to determine the type of change (hence the conventional commits)
  2. If there are user-facing changes (e.g. feat:, fix:), open a new pull request that:
    • Bumps the appropriate version number(s)
    • Updates the CHANGELOG(s)
  3. Subsequent merges to main will update that PR
  4. When you're ready to release, merge the PR. release-please will then create a Github Release (and a tag), which will trigger your existing release workflow.

For an example of a "release PR", check out stac-utils/pystac#1630.

One difference from how things currently work is that each package would get its own changelog -- I don't believe release-please supports a single CHANGELOG for a monorepo. Don't know if that's a non-starter.

@kylebarron

Copy link
Copy Markdown
Member

One difference from how things currently work is that each package would get its own changelog -- I don't believe release-please supports a single CHANGELOG for a monorepo. Don't know if that's a non-starter.

I don't know. I've gone both ways with this before. In https://github.com/geoarrow/geoarrow-rs I had one single Changelog and then switched to many small ones, and then felt that having a single Changelog per package is too many separate files to maintain. Maybe that just means I should be using automation better.

Interesting suggestion:
image

Happy to do whatever you think is best

@gadomski

Copy link
Copy Markdown
Contributor Author

I'm going to try the monorepo setup, hopefully it works? 🤞🏼

@gadomski
gadomski merged commit 80e8e05 into main Jan 26, 2026
@gadomski
gadomski deleted the release-please/bootstrap/default branch January 26, 2026 16:33
@kylebarron

Copy link
Copy Markdown
Member

Thank you!

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.

CI: add CI step to enforce conventional commits

2 participants