We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
create-release-proposal
1 parent 14f02fc commit a18aa85Copy full SHA for a18aa85
tools/actions/create-release-proposal.sh
@@ -1,7 +1,5 @@
1
#!/bin/sh
2
3
-set -xe
4
-
5
GITHUB_REPOSITORY=${GITHUB_REPOSITORY:-nodejs/node}
6
BOT_TOKEN=${BOT_TOKEN:-}
7
@@ -19,10 +17,16 @@ if [ -z "$GITHUB_REPOSITORY" ] || [ -z "$BOT_TOKEN" ]; then
19
17
exit 1
20
18
fi
21
22
-if ! command -v node || ! command -v gh || ! command -v git || ! command -v awk; then
23
- echo "Missing required dependencies"
24
- exit 1
25
-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
+ }
26
+done
27
+[ -z "$HAS_MISSING_DEPS" ] || exit 1
28
+
29
+set -xe
30
31
git node release --prepare --skipBranchDiff --yes --releaseDate "$RELEASE_DATE"
32
0 commit comments