Repository navigation
chore(release): allow minor bumps, upgrade changesets to 3.x, sync Zed grammar rev - #111
Merged
Merged
Conversation
…d grammar rev Switch the RFC #106 changesets from PR #110 to `minor` and upgrade `@changesets/cli` to ^3.0.2 so that peer-dependent packages are bumped by `patch` instead of `major`. Under 2.x the `@tsrx/typescript-plugin` peer dependencies on the target compilers would have pushed its fixed group (eslint-parser, eslint-plugin, language-server, prettier-plugin) to 1.0.0. - `scripts/check-changesets.js` now rejects only `major`; CI step names and the RuleSync bump policy are updated to match. - Point `.changeset/config.json` `$schema` at config 4.0.0. - Sync the Zed grammar rev to dcc0283 so the extension builds the tree-sitter grammar without lazy destructuring. - Fix `sync-zed-grammar-rev.js` exiting the parent version script early on the already-synced path, which skipped the Zed Cargo.toml version update. Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Action v1 incompatible with CLI 3
- Upgraded changesets/action from v1 to v2 in publish, release, and bootstrap workflows, renamed inputs for the v2 API, and restored bootstrap npm token auth after v2 stopped writing .npmrc.
Or push these changes by commenting:
@cursor push bfb5c0aa64
Preview (bfb5c0aa64)
diff --git a/.github/workflows/bootstrap-npm-packages.yml b/.github/workflows/bootstrap-npm-packages.yml
--- a/.github/workflows/bootstrap-npm-packages.yml
+++ b/.github/workflows/bootstrap-npm-packages.yml
@@ -56,15 +56,19 @@
# This job intentionally has no id-token permission. npm prefers OIDC when
# it is available, but a package cannot use OIDC until it exists on npm and
- # has a trusted publisher configured.
- - name: Publish missing packages to npm
- uses: changesets/action@v1
- with:
- publish: pnpm changeset:publish
+ # has a trusted publisher configured. Action v2 no longer writes .npmrc
+ # from NPM_TOKEN, so configure token auth here before publish.
+ - name: Configure npm bootstrap token
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_BOOTSTRAP_TOKEN }}
+ run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "$HOME/.npmrc"
+ - name: Publish missing packages to npm
+ uses: changesets/action@v2
+ with:
+ publish-script: pnpm changeset:publish
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+
- name: Record trusted publishing follow-up
if: success()
run: |
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -93,11 +93,11 @@
- name: Publish to npm
id: changesets
- uses: changesets/action@v1
+ uses: changesets/action@v2
with:
- publish: pnpm changeset:publish
+ publish-script: pnpm changeset:publish
+ github-token: ${{ secrets.GITHUB_TOKEN }}
env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PNPM_CONFIG_PROVENANCE: true
# keep for now just in case
NPM_CONFIG_PROVENANCE: true
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -44,11 +44,9 @@
- name: Create or update release pull request
id: changesets
- uses: changesets/action@v1
+ uses: changesets/action@v2
with:
github-token: ${{ github.token }}
- version: pnpm changeset:version
- commit: Version Packages
- title: Version Packages
- env:
- GITHUB_TOKEN: ${{ github.token }}
+ version-script: pnpm changeset:version
+ commit-message: Version Packages
+ pr-title: Version PackagesYou can send follow-ups to the cloud agent here.
Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 1594e97. Configure here.
Changesets CLI 3 no longer prints the `New tag:` lines that changesets/action@v1 parsed to find published packages, so v1 would publish to npm but never create git tags or GitHub releases. v2 reads the CLI's `CHANGESETS_OUTPUT` file instead and validates that the project uses CLI 3. - Rename inputs (`version` -> `version-script`, `publish` -> `publish-script`, `commit` -> `commit-message`, `title` -> `pr-title`) and pass the token through the `github-token` input, which v2 requires. - Keep `GITHUB_TOKEN` in the release workflow only, where `@changesets/changelog-github` reads it. - v2 dropped writing `.npmrc` from `NPM_TOKEN`, so the bootstrap workflow now authenticates through `actions/setup-node` `registry-url` and `NODE_AUTH_TOKEN`. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This was referenced Sep 23, 2026
This branch was successfully deployed
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.


Summary
Prepares the release that follows the lazy destructuring removal (RFC #106, #110) so it ships as
minorbumps without any package accidentally goingmajor.minor(core, runtime, react/preact/solid/vue, prettier-plugin, eslint-plugin, vscode-plugin, zed-plugin, mcp). The three runtime perf changesets staypatch.@changesets/clito^3.0.2(and@changesets/changelog-githubto^1.0.1). Changesets 3.0 bumps peer-dependents bypatchinstead of forcingmajor(changesets#2090). Under 2.31.0,@tsrx/typescript-plugin's peer dependencies on the target compilers would have pushed it, and its whole fixed group (eslint-parser,eslint-plugin,language-server,prettier-plugin), to 1.0.0. 3.0.3 was skipped only because it is newer than the repo's one-dayminimumReleaseAgeat the time of this PR.scripts/check-changesets.jsto reject onlymajor; CI step names and the RuleSync bump policy (regenerated) are updated to match.packages/zed-plugin/extension.tomltodcc0283aso the extension builds the tree-sitter grammar without lazy destructuring.changesets/action@v2. CLI 3 no longer prints theNew tag:lines v1 parsed, so v1 would publish to npm but never create git tags or GitHub releases; v2 reads the CLI'sCHANGESETS_OUTPUTfile and validates CLI 3. Inputs are renamed (version-script,publish-script,commit-message,pr-title), the token is passed viagithub-token, and the bootstrap job authenticates throughactions/setup-noderegistry-url+NODE_AUTH_TOKENbecause v2 droppedNPM_TOKEN→.npmrchandling. Note that v2 pushes theVersion Packagescommit and release tags through the GitHub API by default, so they arrive GPG-signed by GitHub.scripts/sync-zed-grammar-rev.jscallingprocess.exit(0)on the already-synced path, which terminatedsync-zed-plugin-version.jsbefore it updated the ZedCargo.tomlversion.Resulting release plan (
changeset statusunder 3.0.2)@tsrx/core0.2.0,@tsrx/runtime0.2.0,@tsrx/react0.3.0,@tsrx/preact/solid/vue0.2.0, tooling fixed group 0.4.0,@tsrx/vscode-plugin2.1.0,@tsrx/zed-plugin0.1.0,@tsrx/mcp0.1.0*-runtime0.1.8, all vite/rspack/bun/turbopack pluginsNo package goes major.
Verification
changeset status --verboseunder 2.31.0 (before) showed the tooling group at 1.0.0; under 3.0.2 (after) it is 0.4.0.pnpm changeset:versiondry run in a throwaway worktree produced the versions above, and the Zedextension.toml,Cargo.toml, and language-server pin all updated.node scripts/check-changesets.js,sync-intellij-plugin-version.js --check, andcheck-zed-grammar-rev.jspass.pnpm rules:generateis up to date; touched files pass Prettier.🤖 Generated with Claude Code
Note
Medium Risk
Touches npm publish and versioning automation (changesets 3.x and action v2); mistakes could mis-version packages or break release PR/publish flows, but does not change application runtime auth or data handling.
Overview
Prepares the post–RFC #106 release by reclassifying the lazy-destructuring and related API removal changesets from
patchtominor, and aligning repo policy soscripts/check-changesets.jsand contributor docs only forbidmajorbumps (patch for fixes/additions, minor for language or public API removals).Upgrades
@changesets/clito 3.x (and@changesets/changelog-github/ config schema) so peer-dependent packages in fixed groups bump by patch instead of being forced to 1.0.0 under 2.31.0. Migrates release, publish, and bootstrap workflows tochangesets/action@v2with the new input names (version-script,publish-script,commit-message,pr-title,github-token) and bootstrap npm auth viasetup-noderegistry-url+NODE_AUTH_TOKEN.Also pins the Zed extension Tree-sitter grammar rev to the commit without lazy-destructuring grammar rules, and fixes
sync-zed-grammar-rev.jsso an already-synced rev no longer callsprocess.exit(0)and skips follow-up Zed version sync.Reviewed by Cursor Bugbot for commit 3d7b85a. Bugbot is set up for automated code reviews on this repo. Configure here.