- Clean working directory (
git statusshows only intended changes)
-
Update version
cd wa-sqlite # Edit package.json version directly or use pnpm pnpm version patch # or minor/major/prepatch/preminor/premajor
-
Rebuild with Nix
# From repository root nix run .#build-wa-sqlite
-
Test the build
# From repository root node -e "import('./wa-sqlite/dist/wa-sqlite.node.mjs').then(m => console.log('✓ Build works'))"
-
Update CHANGELOG.md
- Add entry for new version with date
- Document changes
-
Commit wa-sqlite submodule changes
cd wa-sqlite git add . git commit -m "Release vX.Y.Z" cd ..
-
Commit parent repo changes
git add wa-sqlite nix/wa-sqlite-livestore.nix CHANGELOG.md git commit -m "Release wa-sqlite vX.Y.Z" -
Publish to npm
cd wa-sqlite pnpm publish --access public cd ..
-
Push both repos
cd wa-sqlite git push origin HEAD:main cd .. git push origin main