Repository navigation
feat(release): version and release the Neovim and Sublime Text integrations - #1060
Merged
Merged
Conversation
…ations Neovim and Sublime Text were on the Changesets ignore list. Their versions never moved, and nothing was released for them; the only automation was the pull request that moves their `@tsrx/language-server` pin after a server release. Both stay private, so Changesets still never publishes them to npm. - `.changeset/config.json`: no longer ignores `@tsrx/nvim-plugin` and `@tsrx/sublime-text-plugin`, so Version Packages bumps their versions and writes their changelogs, as it does for the private VS Code, Zed and IntelliJ packages. - `scripts/sync-editor-language-server-pins.js`: when the pins move, it also adds a changeset for both, so the next Version Packages releases them with the new server. The pins workflow now stages that new file. - `.github/workflows/publish.yml`: when a Version Packages commit changes either version, `scripts/create-editor-release.js` tags `<package>@<version>` and creates a GitHub release with that version's changelog (not marked latest). The Sublime Text release attaches `TSRX.sublime-package`, built from the committed lockfile. - READMEs: Neovim explains updating (`:TSInstall! tsrx` rebuilds the parser; `:TSUpdate` does so only on nvim-treesitter's `master`), and Sublime Text explains installing the release's package. - Changesets for both editors cover #1057's grammar fixes, so their first release includes them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Merged
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.
What changes
Neovim and Sublime Text now get a version, a changelog and a GitHub release whenever something they ship changes: the grammars, their own sources, or the
@tsrx/language-serverversion they pin. Until now their versions stayed at 0.0.82, and #1057's grammar fixes reached them with no release or note. The only automation was the pull request that moves their server pin after a server release.Both stay
private, so they are still never published to npm.changeset publishskips private packages, as it does for the VS Code, Zed and IntelliJ packages.packages/<editor>/CHANGELOG.md@tsrx/<editor>@<version>and a GitHub release with that version's changelogTSRX.sublime-package(about 35 KB)How it works
.changeset/config.json:@tsrx/nvim-pluginand@tsrx/sublime-text-pluginare no longer ignored.privatePackagesstays{ version: true, tag: false }, so Changesets versions them but neither publishes nor tags them.scripts/sync-editor-language-server-pins.js: when it moves the pins, it also writes.changeset/editor-language-server-<version>.md(a patch for both editors). The pins job now runsgit add --allbefore committing, becausegit commit --allleaves out new files..github/workflows/publish.yml: the Publish job detects a Neovim or Sublime Text version change the same way it detects IntelliJ's.release-nvim-pluginandrelease-sublime-text-pluginthen runscripts/create-editor-release.js, which:<package>@<version>on the release commit, or checks that an existing tag already points there, as the Zed job does;--latest=falseso the npm packages' releases keep "Latest";node scripts/build.js, not thebuildscript.buildfirst regenerates the server lockfile from npm, but the release should ship the committed one.:TSInstall! tsrx, because nvim-treesitter'smainbranch does not rebuild a local parser on:TSUpdate(itsmasterbranch does).Tests
scripts/tests(19 passed, 6 new):contents: write, and the Sublime Text job builds withscripts/build.js;pnpm changeset:versionon this branch, in a scratch worktree: both editors go from 0.0.82 to 0.0.83 with new changelogs, and no other package changes.releaseNotesreturns each 0.0.83 section, andnode scripts/build.jsbuilds the 35 KB package from the committed files.Not run: the release jobs themselves, which create tags and releases. They run on the next Version Packages merge.
🤖 Generated with Claude Code
Note
Medium Risk
Changes CI release automation (tags, GitHub releases, contents: write) and the language-server pin workflow; runtime editor behavior is mostly documentation and changelog-driven releases.
Overview
Neovim and Sublime Text are now versioned through Changesets (removed from
.changeset/config.jsonignore) while staying private and off npm. Version Packages bumps them, writes changelogs, and the Publish workflow tags@tsrx/nvim-plugin@<version>/@tsrx/sublime-text-plugin@<version>and creates GitHub releases via newscripts/create-editor-release.js(changelog section as notes,--latest=false). Sublime releases attach a builtTSRX.sublime-packageusingnode scripts/build.jsso the committed language-server lockfile is preserved.When
sync-editor-language-server-pins.jsmoves the bundled@tsrx/language-serverpin, it also adds a patch changeset for both editors; the pins PR now runsgit add --allso that new file is committed. Initial changesets document #1057 grammar fixes and the downloadable Sublime package.READMEs add Neovim update/parser rebuild steps and Sublime install-from-release instructions. Tests cover release notes parsing, workflow wiring, changeset creation, and Changesets config for the private editor packages.
Reviewed by Cursor Bugbot for commit ae54735. Bugbot is set up for automated code reviews on this repo. Configure here.