We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b632bad commit 7409c33Copy full SHA for 7409c33
tools/release.sh
@@ -78,6 +78,14 @@ function sign {
78
79
if [ "${gpgtagkey}" != "${gpgkey}" ]; then
80
echo "GPG key for \"${version}\" tag is not yours, cannot sign"
81
+ exit 1
82
+ fi
83
+
84
+ ghtaggedversion=$(curl -sL https://raw.githubusercontent.com/nodejs/node/${version}/src/node_version.h \
85
+ | awk '/define NODE_(MAJOR|MINOR|PATCH)_VERSION/{ v = v "." $3 } END{ v = "v" substr(v, 2); print v }')
86
+ if [ "${version}" != "${ghtaggedversion}" ]; then
87
+ echo "Could not find tagged version on github.com/nodejs/node, did you push your tag?"
88
89
fi
90
91
shapath=$(ssh ${webuser}@${webhost} $signcmd nodejs $version)
0 commit comments