Repository navigation
ci: release with release-please - #91
Open
ewanharris wants to merge 1 commit into
Open
ewanharris wants to merge 1 commit into
ewanharris wants to merge 1 commit into
Conversation
Releases were a hand-written pull request that bumped the version and renamed the changelog's Unreleased heading, then a GitHub release made by hand for publish.yml to react to. release-please does all of that from the commits instead: it keeps a release pull request open, bumps package.json and the lockfile, writes the changelog section and tags and publishes the GitHub release when that pull request merges. Publishing moves into the same workflow, gated on release-please's release_created output, because a release created with GITHUB_TOKEN does not fire `release: published` and so would never start publish.yml again. The npm trusted publisher has to name release.yml and the release environment. bump-minor-pre-major keeps a breaking change at a minor bump while the package is below 1.0, rather than jumping it to 1.0.0. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011jD6h7WuwMXjcezDtAQWh5
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The publishing migration requires human confirmation of npm’s trusted-publisher binding and repository rules permitting bot-created release PRs without token-triggered CI, which cannot be verified from the diff.
No open issues 🎉
What changed in this PR
Replaces the language server’s manual release process with release-please, automating version updates, changelog generation, GitHub releases, and npm publishing.
Changes:
- Configures release-please from version
0.1.1, with minor bumps for breaking changes before 1.0. - Moves npm publishing into the release workflow, retaining lint and test checks before publication.
- Updates contributor guidance and the changelog preamble for automated releases.
| File | Description |
|---|---|
release-please-config.json |
Defines Node release behavior, tag format, and changelog settings. |
CHANGELOG.md |
Removes the Unreleased heading and explains automated changelog generation. |
AGENTS.md |
Documents release automation and commit-message controls. |
.release-please-manifest.json |
Sets the starting release version to 0.1.1. |
.github/workflows/release.yml |
Creates releases and publishes to npm after lint and tests pass. |
.github/workflows/publish.yml |
Removes the separate release-triggered publishing workflow. |
Review effort: Balanced
m1ga
added a commit
that referenced
this pull request
Nov 24, 2026
release-please writes the changelog after #91 merges, so the entry is not needed here. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Releases were a hand-written pull request that bumped
versionand renamed the changelog's## Unreleasedheading, then a GitHub release made by hand forpublish.ymlto react to. release-please does all of that from the commits instead, the same waytidev/vscode-titaniumdoes.What this adds
release-please-config.json—release-type: node,include-component-in-tag: false,changelog-path: CHANGELOG.md, plusbump-minor-pre-majorso a breaking change bumps the minor while the package is below 1.0 rather than jumping it to 1.0.0..release-please-manifest.json— pinned at0.1.1. Thev0.1.0andv0.1.1tags are already in the shape release-please expects, so it carries on fromv0.1.1with no bootstrap SHA..github/workflows/release.yml— release-please on every push tomain, keeping a release pull request open; merging it tagsv<version>and publishes the GitHub release.What this removes
publish.ymlis gone, and its publish job moves intorelease.yml, gated on release-please'srelease_createdoutput. It has to: a release created withGITHUB_TOKENdoes not firerelease: published, sopublish.ymlwould never have run again. Its tag-matches-version and changelog-has-version checks go with it, because release-please writes both.The job still runs lint and the suite before
npm publish. The release pull request itself gets no CI — a pull request opened byGITHUB_TOKENdoes not start workflows — so that is the one run standing between a merge and the registry.Changelog and commit messages
CHANGELOG.mdloses its## Unreleasedsection; release-please writes new sections above the first version heading, so the 0.1.x history and the preamble stay put.AGENTS.mdgains a rewritten Releasing section covering what a commit can tell release-please: extra conventional-commit lines at the bottom of a body for several entries from one squash,BEGIN_COMMIT_OVERRIDEin a merged pull request's body to fix an entry afterwards, andRelease-As:to choose a version. The commits section now says the pull request title is what lands in the changelog, and thatCHANGELOG.mdis no longer edited by hand.Before the first release-please release merges
@titanium-sdk/language-serverto this repository, workflowrelease.yml, environmentrelease.mainrequires status checks, the release pull request will not have any — exclude it, or the merge will be blocked.Generated by Claude Code