/
githubmirror
/
strapi
Обзор
Документация
Войти
/
githubmirror
/
strapi
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
scripts/remove-dist-tag.sh
25 строк
715 B
Ben Irvin
ci: remove lerna (#25426)
09 мар 2026, 19:09
Не верифицирован
09 мар 2026, 19:09
ff27b6d
Код
Авторство
О чём код?
#!/bin/bash # Force start from root folder cd "$(dirname "$0")/.." set -e distTag=$DIST_TAG # trim distTag for whitespace at the start and end distTag=$(echo "$distTag" | xargs) if [[ -z "$distTag" ]]; then echo "Please enter the dist-tag you want to remove" read -r distTag fi # Check if dist tag is latest, beta, alpha or next and reject if [[ "$distTag" == "latest" || "$distTag" == "beta" || "$distTag" == "alpha" || "$distTag" == "next" ]]; then echo "You cannot remove the dist-tag $distTag" exit 1 fi # Run npm dist-tag rm $distTag on each publishable (non-private) package yarn workspaces foreach -A --no-private exec "npm dist-tag rm \$(node -p \"require('./package.json').name\") $distTag"