tools: improve log output of create-release-proposal

PR-URL: https://github.com/nodejs/node/pull/61028
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Richard Lau <richard.lau@ibm.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Antoine du Hamel
2025-12-14 12:26:36 +01:00
committed by GitHub
parent 4f24aff94a
commit 6322071efe

View File

@@ -1,7 +1,5 @@
#!/bin/sh
set -xe
GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-nodejs/node}
BOT_TOKEN=${BOT_TOKEN:-}
@@ -19,10 +17,16 @@ if [ -z "$GITHUB_REPOSITORY" ] || [ -z "$BOT_TOKEN" ]; then
exit 1
fi
if ! command -v node || ! command -v gh || ! command -v git || ! command -v awk; then
echo "Missing required dependencies"
exit 1
fi
HAS_MISSING_DEPS=
for dep in node gh git git-node awk; do
command -v "$dep" > /dev/null || {
echo "Required dependency $dep is missing" >&2
HAS_MISSING_DEPS=1
}
done
[ -z "$HAS_MISSING_DEPS" ] || exit 1
set -xe
git node release --prepare --skipBranchDiff --yes --releaseDate "$RELEASE_DATE"