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.
1 parent 1fcf561 commit a23a238Copy full SHA for a23a238
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://github.com/raw/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