File size: 488 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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