AFFiNE/scripts/publish.sh
2023-10-16 19:47:05 -05:00

22 lines
300 B
Bash
Executable File

#!/bin/bash
packages=(
"y-indexeddb"
"y-provider"
"infra"
"sdk"
)
for package in "${packages[@]}"; do
yarn nx build $package
cd "packages/$package"
if [ "$NIGHTLY" = "true" ]; then
yarn npm publish --no-git-checks --tag nightly
else
yarn npm publish
fi
cd ../../
done