mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
build: add set-version.sh
This commit is contained in:
8
scripts/set-version.sh
Executable file
8
scripts/set-version.sh
Executable file
@@ -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