Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

build: add `set-version.sh`

himself6583dafa149c50
diff --git a/scripts/set-version.sh b/scripts/set-version.sh
new file mode 100755
index 0000000000..bf421bb821
--- /dev/null
+++ b/scripts/set-version.sh
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+for DIR in $(yarn workspaces list --json | jq -r '.location'); do
+ if [ -f "$DIR/package.json" ]; then
+ echo "Setting version for $DIR"
+ jq ".version = \"$1\"" "$DIR"/package.json > tmp.json && mv tmp.json "$DIR"/package.json
+ fi
+done