ci: sync Lakebase driver version to package.json before packing tarball#334
Merged
ci: sync Lakebase driver version to package.json before packing tarball#334
Conversation
release-it with "npm": false skips the version bump in package.json, causing the tarball to contain the old version while VERSION file has the new one. Add sync-lakebase-version.ts (mirroring sync-versions.ts for appkit) and call it in the prepare-release workflow. Co-authored-by: Isaac
MarioCadenas
approved these changes
Apr 30, 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.
Summary
The lakebase 0.3.0 npm release failed because the tarball contained version
0.2.0while theVERSIONfile said0.3.0. npm rejected the publish because0.2.0was already published.The prepare-release-lakebase run produced
VERSION=0.3.0but the tarball wasdatabricks-lakebase-0.2.0.tgz.Root cause:
release-itwith"npm": falseskips the version bump inpackage.json. The appkit workflow works because it callssync-versions.tsafter release-it — but the lakebase workflow had no equivalent step.Fix:
tools/sync-lakebase-version.ts(mirrorssync-versions.tsfor appkit)prepare-release-lakebase.ymlbetween changelog generation and buildpackage.jsondescription with README ("Autoscaling")Test plan
pnpm exec tsx tools/sync-lakebase-version.ts "0.3.0"locally — confirmedpackages/lakebase/package.jsonversion updated to0.3.0