AFFiNE/scripts/publish.sh

21 lines
294 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-06-09 11:43:46 +03:00
"plugin-infra"
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