AFFiNE/scripts/publish.sh

22 lines
310 B
Bash
Raw Normal View History

2023-04-21 01:45:45 +03:00
#!/bin/bash
packages=(
"y-indexeddb"
"y-provider"
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
cd "packages/common/$package"
2023-04-21 01:45:45 +03:00
if [ "$NIGHTLY" = "true" ]; then
yarn npm publish --no-git-checks --tag nightly
else
yarn npm publish
fi
cd ../../../
2023-04-21 01:45:45 +03:00
done