From 3b292c32b0d75b194b03261493c5b97bd04a52dd Mon Sep 17 00:00:00 2001 From: Christian Bewernitz Date: Mon, 9 Aug 2021 14:23:40 +0200 Subject: [PATCH] chore: Add script to check npm maintainers --- check-publish-access.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 check-publish-access.sh diff --git a/check-publish-access.sh b/check-publish-access.sh new file mode 100755 index 000000000..374d56c55 --- /dev/null +++ b/check-publish-access.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -eu + +WAIT=60 + +while ! (TZ=UTC date -Isec && npm owner ls xmldom | grep "$1") +do + echo "$1 is not listed as owner, trying again in $WAIT sec" + sleep $WAIT +done + +echo "$1 is listed as owner"