Download next.js/scripts/release-stats.sh from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/scripts/release-stats.sh
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/scripts/release-stats.sh
-
curl -L -o release-stats.sh https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/scripts/release-stats.sh
488 Bytes
| RELEASE_CHECK=$(node ./scripts/check-is-release.js 2> /dev/null || :) | |
| if [[ $RELEASE_CHECK == "new-release" || $RELEASE_CHECK == v* ]]; | |
| then | |
| echo "Publish occurred, running release stats..." | |
| else | |
| echo "Not publish commit, exiting..." | |
| touch .github/actions/next-stats-action/SKIP_NEXT_STATS.txt | |
| exit 0; | |
| fi | |
| if [[ -z "$NPM_TOKEN" ]];then | |
| echo "No NPM_TOKEN, exiting.." | |
| exit 0; | |
| fi | |
| echo "Waiting 30 seconds to allow publish to finalize" | |
| sleep 30 | |