mirror of
https://github.com/toeverything/AFFiNE.git
synced 2025-10-26 11:37:06 +00:00
build: add set-version.sh
This commit is contained in:
parent
3a25f13734
commit
83dafa149c
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
|
||||
Loading…
Reference in New Issue
Block a user