Fix version bump

This commit is contained in:
Andras Schmelczer 2025-03-16 20:08:02 +00:00
parent 8a36be7d56
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

@ -27,26 +27,26 @@ cd backend
cargo set-version --bump patch
echo "Bumping frontend versions"
cd ../plugin
npm version patch
cd ../frontend
npm version patch --workspaces
echo "Updating frontend dependencies to match the new backend versions"
cd ../backend/sync_lib
wasm-pack build --target web --features console_error_panic_hook
cd ../../plugin
cd ../../frontend
npm install
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
# git add .
# TAG=$(node -p "require('./plugin/package.json').version")
# git commit -m "Bump versions to $TAG"
Commit and tag
git add .
TAG=$(node -p "require('./plugin/package.json').version")
git commit -m "Bump versions to $TAG"
# git push
# echo "Tagging $TAG"
# git tag -a $TAG -m "Release $TAG"
# git push origin $TAG
git push
echo "Tagging $TAG"
git tag -a $TAG -m "Release $TAG"
git push origin $TAG
echo "Done"