mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-02 01:49:51 +08:00
build: add set-version.sh
This commit is contained in:
Executable
+8
@@ -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
|
||||||
Reference in New Issue
Block a user