mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-25 13:51:17 +00:00
73a9bae2ff
* Moving from yarn to pnpm. * Exclude pnp-lock. * Exclude pnp-lock 2. * Forgot 2 more. * Upgrading deps.
23 lines
556 B
Bash
Executable file
23 lines
556 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Update all the submodules and translations
|
|
./update_submodules.sh
|
|
|
|
pnpm crawl
|
|
pnpm update-donations
|
|
git add "src/shared/instance_stats.ts"
|
|
git add "src/shared/donation_stats.ts"
|
|
git commit -m "Crawl and donation instance statistics"
|
|
|
|
# look for unused translations
|
|
for langfile in joinlemmy-translations/translations/*.json; do
|
|
lang=$(basename $langfile .json)
|
|
if ! grep -q "\"./translations/$lang\"" src/shared/i18next.ts; then
|
|
echo "Unused language $lang"
|
|
fi
|
|
done
|
|
|
|
new_tag="$1"
|
|
|
|
git tag $new_tag
|
|
git push origin $new_tag
|