AFFiNE/scripts/publish.sh

21 lines
285 B
Bash
Raw Normal View History

2023-04-21 01:45:45 +03:00
#!/bin/bash
packages=(
"y-indexeddb"
2023-06-16 10:00:06 +03:00
"infra"
2023-08-03 07:47:05 +03:00
"sdk"
2023-04-21 01:45:45 +03:00
)
for package in "${packages[@]}"; do
2023-06-19 06:18:54 +03:00
yarn nx build $package
2023-04-21 01:45:45 +03:00
cd "packages/$package"
if [ "$NIGHTLY" = "true" ]; then
yarn npm publish --no-git-checks --tag nightly
else
yarn npm publish
fi
cd ../../
done