Files
php-flasher/bin/npm
T
2025-01-25 14:59:20 +01:00

27 lines
607 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env bash
set -e
NPM_FOLDERS=(
"src/Prime/Resources"
"src/Noty/Prime/Resources"
"src/Notyf/Prime/Resources"
"src/SweetAlert/Prime/Resources"
"src/Toastr/Prime/Resources"
)
for folder in "${NPM_FOLDERS[@]}"; do
if [ -d "$folder" ]; then
echo ""
echo "Publishing $folder to npm..."
(
cd "$folder"
npm install
npm version "$VERSION" --no-git-tag-version || true
npm publish --access public
)
fi
done
echo "Release $VERSION complete tagged repositories and published packages to npm."