Fix version bump

This commit is contained in:
Andras Schmelczer 2025-03-16 20:08:02 +00:00
commit 2bf5223275
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 16 additions and 16 deletions

View file

@ -1,6 +1,6 @@
{ {
"name": "sync-client", "name": "sync-client",
"version": "0.0.0", "version": "0.0.30",
"main": "dist/sync-client.node.js", "main": "dist/sync-client.node.js",
"browser": "dist/sync-client.web.js", "browser": "dist/sync-client.web.js",
"types": "dist/types/index.d.ts", "types": "dist/types/index.d.ts",
@ -33,4 +33,4 @@
"webpack-merge": "^6.0.1", "webpack-merge": "^6.0.1",
"sync_lib": "file:../../backend/sync_lib/pkg" "sync_lib": "file:../../backend/sync_lib/pkg"
} }
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "test-client", "name": "test-client",
"version": "0.0.0", "version": "0.0.30",
"private": true, "private": true,
"bin": { "bin": {
"test-client": "./dist/cli.js" "test-client": "./dist/cli.js"
@ -20,4 +20,4 @@
"webpack": "^5.98.0", "webpack": "^5.98.0",
"webpack-cli": "^6.0.1" "webpack-cli": "^6.0.1"
} }
} }

View file

@ -27,26 +27,26 @@ cd backend
cargo set-version --bump patch cargo set-version --bump patch
echo "Bumping frontend versions" echo "Bumping frontend versions"
cd ../plugin cd ../frontend
npm version patch npm version patch --workspaces
echo "Updating frontend dependencies to match the new backend versions" echo "Updating frontend dependencies to match the new backend versions"
cd ../backend/sync_lib cd ../backend/sync_lib
wasm-pack build --target web --features console_error_panic_hook wasm-pack build --target web --features console_error_panic_hook
cd ../../plugin cd ../../frontend
npm install npm install
cd .. cd ..
cp plugin/manifest.json manifest.json # for BRAT, otherwise it wouldn't update cp frontend/obsidian-plugin/manifest.json manifest.json # for BRAT, otherwise it wouldn't update
# Commit and tag Commit and tag
# git add . git add .
# TAG=$(node -p "require('./plugin/package.json').version") TAG=$(node -p "require('./plugin/package.json').version")
# git commit -m "Bump versions to $TAG" git commit -m "Bump versions to $TAG"
# git push git push
# echo "Tagging $TAG" echo "Tagging $TAG"
# git tag -a $TAG -m "Release $TAG" git tag -a $TAG -m "Release $TAG"
# git push origin $TAG git push origin $TAG
echo "Done" echo "Done"