Skip to content

ci: release with release-please - #91

Open
ewanharris wants to merge 1 commit into
mainfrom
claude/friendly-franklin-3rmebe
Open

ewanharris wants to merge 1 commit into
mainfrom
claude/friendly-franklin-3rmebe

Conversation

@ewanharris

Copy link
Copy Markdown
Member

Releases were a hand-written pull request that bumped 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, the same way tidev/vscode-titanium does.

What this adds

  • release-please-config.json — release-type: node, include-component-in-tag: false, changelog-path: CHANGELOG.md, plus bump-minor-pre-major so 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 at 0.1.1. The v0.1.0 and v0.1.1 tags are already in the shape release-please expects, so it carries on from v0.1.1 with no bootstrap SHA.
  • .github/workflows/release.yml — release-please on every push to main, keeping a release pull request open; merging it tags v<version> and publishes the GitHub release.

What this removes

publish.yml is gone, and its publish job moves into release.yml, gated on release-please's release_created output. It has to: a release created with GITHUB_TOKEN does not fire release: published, so publish.yml would 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 by GITHUB_TOKEN does not start workflows — so that is the one run standing between a merge and the registry.

Changelog and commit messages

CHANGELOG.md loses its ## Unreleased section; release-please writes new sections above the first version heading, so the 0.1.x history and the preamble stay put. AGENTS.md gains 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_OVERRIDE in a merged pull request's body to fix an entry afterwards, and Release-As: to choose a version. The commits section now says the pull request title is what lands in the changelog, and that CHANGELOG.md is no longer edited by hand.

Before the first release-please release merges

  • Set the npm trusted publisher for @titanium-sdk/language-server to this repository, workflow release.yml, environment release.
  • If main requires status checks, the release pull request will not have any — exclude it, or the merge will be blocked.

Generated by Claude Code

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
Copilot AI balanced review requested due to automatic review settings November 12, 2026 22:53

Copilot AI 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.

🔵 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>
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.

3 participants