AFFiNE/scripts/publish.sh

20 lines
265 B
Bash
Raw Normal View History

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