Skip to content

ui: fix check-package version read under pnpm - #18976

Merged
krajorama merged 1 commit into
release-3.13from
krajo/fix-ui-release-check-package
Jun 22, 2026
Merged

krajorama merged 1 commit into
release-3.13from
krajo/fix-ui-release-check-package

Conversation

@krajorama

Copy link
Copy Markdown
Member

ui_release.sh --check-package always reports a false version mismatch under pnpm:

version of mantine-ui is not the correct one
expected one: 0.313.0-rc.0
current one:
please use ./ui_release --bump-version 0.313.0-rc.0

Cause

checkPackage() read each workspace package's version with pnpm run env | grep npm_package_version. That is an npm idiom — npm run env invokes npm's built-in env command which prints npm_package_version=…. pnpm has no such built-in, so it fails with [ERR_PNPM_NO_SCRIPT] Missing script: env and produces no output. package_version is 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's package.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 at 0.313.0-rc.0.

NONE

🤖 Generated with Claude Code

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]>
@krajorama
krajorama requested a review from a team as a code owner June 19, 2026 12:50
@krajorama
krajorama merged commit 2fe27be into release-3.13 Jun 22, 2026
40 checks passed
@krajorama
krajorama deleted the krajo/fix-ui-release-check-package branch June 22, 2026 08:22
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.

2 participants