Skip to content

feat(release): version and release the Neovim and Sublime Text integrations - #1060

Merged
leonidaz merged 1 commit into
mainfrom
feat/editor-releases-nvim-sublime
Oct 5, 2026
Merged

leonidaz merged 1 commit into
mainfrom
feat/editor-releases-nvim-sublime

Conversation

@leonidaz

@leonidaz leonidaz commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

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-server version 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 publish skips private packages, as it does for the VS Code, Zed and IntelliJ packages.

Before After
Version 0.0.82, never moved bumped by Version Packages from changesets
Changelog none packages/<editor>/CHANGELOG.md
Release none tag @tsrx/<editor>@<version> and a GitHub release with that version's changelog
Sublime Text package build it from the repository also attached to each release as TSRX.sublime-package (about 35 KB)
Server pin moves a pull request that moves the pin the same pull request, plus a changeset, so the next Version Packages releases both editors

How it works

  • .changeset/config.json: @tsrx/nvim-plugin and @tsrx/sublime-text-plugin are no longer ignored. privatePackages stays { 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 runs git add --all before committing, because git commit --all leaves 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-plugin and release-sublime-text-plugin then run scripts/create-editor-release.js, which:
    • tags <package>@<version> on the release commit, or checks that an existing tag already points there, as the Zed job does;
    • creates the GitHub release with that version's section of the changelog, with --latest=false so the npm packages' releases keep "Latest";
    • attaches the asset when one is given, and on a rerun only uploads it again.
  • Sublime Text asset: built with node scripts/build.js, not the build script. build first regenerates the server lockfile from npm, but the release should ship the committed one.
  • READMEs:
    • Neovim gets an "Updating" section. After updating the plugin, run :TSInstall! tsrx, because nvim-treesitter's main branch does not rebuild a local parser on :TSUpdate (its master branch does).
    • Sublime Text gets an "Installation" section for the release download.
  • Changesets: three changesets cover fix(grammars): <style>/<script> blocks, element attribute values, and tree-sitter gaps found in the repository's .tsrx files #1057's grammar fixes for each editor and the new Sublime Text asset, so the first releases (0.0.83) include them.

Tests

  • scripts/tests (19 passed, 6 new):
    • release notes come from the right changelog section, and a missing version fails;
    • both release jobs are wired to the version changes, have only contents: write, and the Sublime Text job builds with scripts/build.js;
    • the pins script writes the changeset, and writes none when the pins already match;
    • the pins job stages new files;
    • both editors are private and not ignored by Changesets.
  • Dry run of pnpm changeset:version on 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. releaseNotes returns each 0.0.83 section, and node scripts/build.js builds 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.json ignore) 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 new scripts/create-editor-release.js (changelog section as notes, --latest=false). Sublime releases attach a built TSRX.sublime-package using node scripts/build.js so the committed language-server lockfile is preserved.

When sync-editor-language-server-pins.js moves the bundled @tsrx/language-server pin, it also adds a patch changeset for both editors; the pins PR now runs git add --all so 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.

…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]>
@leonidaz
leonidaz merged commit bc439e9 into main Oct 5, 2026
8 checks passed
@leonidaz
leonidaz deleted the feat/editor-releases-nvim-sublime branch October 5, 2026 18:31
@github-actions github-actions Bot mentioned this pull request Oct 5, 2026
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.

1 participant