Repository navigation
ui: fix check-package version read under pnpm - #18976
Merged
Merged
Conversation
checkPackage read each workspace package's version via `pnpm run env | grep npm_package_version`, an npm-ism. pnpm has no built-in `env` script, so it fails with ERR_PNPM_NO_SCRIPT and returns an empty string, making `ui_release.sh --check-package` report a false version mismatch for every package. Read the version with `pnpm pkg get version` instead. Leftover from the npm-to-pnpm migration (#18797). Co-Authored-By: Claude Opus 4.8 <[email protected]> Signed-off-by: György Krajcsovits <[email protected]>
roidelapluie
approved these changes
Jun 19, 2026
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.
ui_release.sh --check-packagealways reports a false version mismatch under pnpm:Cause
checkPackage()read each workspace package's version withpnpm run env | grep npm_package_version. That is an npm idiom —npm run envinvokes npm's built-inenvcommand which printsnpm_package_version=…. pnpm has no such built-in, so it fails with[ERR_PNPM_NO_SCRIPT] Missing script: envand produces no output.package_versionis therefore empty and the comparison against the expected version always fails, even when the versions are correct.This is a leftover from the npm-to-pnpm migration (#18797).
Fix
Read the version with
pnpm pkg get version(pnpm-native, reads the current package'spackage.json), stripping the surrounding quotes.Verified:
./scripts/ui_release.sh --check-package "$(./scripts/get_module_version.sh v3.13.0-rc.0)"now exits 0 with the workspace packages at0.313.0-rc.0.🤖 Generated with Claude Code