Skip to content

ci: sync Lakebase driver version to package.json before packing tarball#334

Merged
pkosiec merged 1 commit intomainfrom
pkosiec/fix-lakebase-release-version
Apr 30, 2026
Merged

ci: sync Lakebase driver version to package.json before packing tarball#334
pkosiec merged 1 commit intomainfrom
pkosiec/fix-lakebase-release-version

Conversation

@pkosiec
Copy link
Copy Markdown
Member

@pkosiec pkosiec commented Apr 30, 2026

Summary

The lakebase 0.3.0 npm release failed because the tarball contained version 0.2.0 while the VERSION file said 0.3.0. npm rejected the publish because 0.2.0 was already published.

The prepare-release-lakebase run produced VERSION=0.3.0 but the tarball was databricks-lakebase-0.2.0.tgz.

Root cause: release-it with "npm": false skips the version bump in package.json. The appkit workflow works because it calls sync-versions.ts after release-it — but the lakebase workflow had no equivalent step.

Fix:

  • Add tools/sync-lakebase-version.ts (mirrors sync-versions.ts for appkit)
  • Call it in prepare-release-lakebase.yml between changelog generation and build
  • Align lakebase package.json description with README ("Autoscaling")

Test plan

  • Ran pnpm exec tsx tools/sync-lakebase-version.ts "0.3.0" locally — confirmed packages/lakebase/package.json version updated to 0.3.0
  • After merge, verify the prepare-release-lakebase workflow produces a tarball with matching version

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
@pkosiec pkosiec marked this pull request as ready for review April 30, 2026 12:45
@pkosiec pkosiec changed the title fix(lakebase): sync version to package.json before packing tarball ci: sync version to package.json before packing tarball Apr 30, 2026
@pkosiec pkosiec changed the title ci: sync version to package.json before packing tarball ci: sync Lakebase driver version to package.json before packing tarball Apr 30, 2026
@pkosiec pkosiec enabled auto-merge (squash) April 30, 2026 12:48
@pkosiec pkosiec disabled auto-merge April 30, 2026 12:48
@pkosiec pkosiec enabled auto-merge (squash) April 30, 2026 12:48
@pkosiec pkosiec merged commit b1a1005 into main Apr 30, 2026
13 checks passed
@pkosiec pkosiec deleted the pkosiec/fix-lakebase-release-version branch April 30, 2026 12:50
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