Files
AFFiNE-Mirror/scripts/publish.sh
Himself65 7f3632a25e feat: add infra code (#2718)
(cherry picked from commit f3fd5ff76b)
2023-06-08 18:28:59 +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