Chart.js/scripts/publish.sh
2020-10-15 16:37:38 -04:00

13 lines
202 B
Bash
Executable File

#!/bin/bash
set -e
NPM_TAG="next"
if [[ "$VERSION" =~ ^[^-]+$ ]]; then
echo "Release tag indicates a full release. Releasing as \"latest\"."
NPM_TAG="latest"
fi
npm publish --tag "$NPM_TAG"