diff --git a/frontend/sync-client/package.json b/frontend/sync-client/package.json index 37e63bc8..f08b5f5a 100644 --- a/frontend/sync-client/package.json +++ b/frontend/sync-client/package.json @@ -1,6 +1,6 @@ { "name": "sync-client", - "version": "0.0.0", + "version": "0.0.30", "main": "dist/sync-client.node.js", "browser": "dist/sync-client.web.js", "types": "dist/types/index.d.ts", @@ -33,4 +33,4 @@ "webpack-merge": "^6.0.1", "sync_lib": "file:../../backend/sync_lib/pkg" } -} +} \ No newline at end of file diff --git a/frontend/test-client/package.json b/frontend/test-client/package.json index 88877204..b11a4c41 100644 --- a/frontend/test-client/package.json +++ b/frontend/test-client/package.json @@ -1,6 +1,6 @@ { "name": "test-client", - "version": "0.0.0", + "version": "0.0.30", "private": true, "bin": { "test-client": "./dist/cli.js" @@ -20,4 +20,4 @@ "webpack": "^5.98.0", "webpack-cli": "^6.0.1" } -} +} \ No newline at end of file diff --git a/scripts/bump-version.sh b/scripts/bump-version.sh index b2e715e1..c8de4839 100755 --- a/scripts/bump-version.sh +++ b/scripts/bump-version.sh @@ -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"