Files
next.js/scripts/release-stats.sh
T
Jiwon ChoiandGitHub e5f2e0f9c1 [release-new] fix: release pr commit contains (#number) at last (#79611)
When the "Version Packages" PR is merged, the created commit is the
format of "Version Packages (#number)". Therefore, the
check-is-release.js script won't match the current regex. Also, I
modified the workflows that use the `check-is-release.js` to consider
the new release as a release workflow as well.
2025-05-26 14:02:49 +02:00

20 lines
488 B
Bash
Executable File

#!/usr/bin/env bash
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