Skip to content

Commit 9c21983

Browse files
committed
ci: stage at verbose so a failed OIDC token exchange says why
1 parent 529f78d commit 9c21983

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎.github/scripts/npm-stage-publish.sh‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ fi
2929
echo "staging $name@$version"
3030
out="$(mktemp)"
3131
trap 'rm -f "$out"' EXIT
32-
if (cd "$dir" && npm stage publish "$@") > "$out" 2>&1; then
32+
# verbose, because npm reports a failed OIDC token exchange only at that level and otherwise falls through to a bare E401
33+
if (cd "$dir" && npm stage publish --loglevel verbose "$@") > "$out" 2>&1; then
3334
cat "$out"
3435
exit 0
3536
fi

0 commit comments

Comments
 (0)