Files
AFFiNE-Mirror/scripts/publish.sh
2023-06-08 09:41:20 +08:00

20 lines
265 B
Bash
Executable File

#!/bin/bash
packages=(
"y-indexeddb"
"infra"
)
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