Skip to content

Commit

Permalink
tools: check tag is on github before release
Browse files Browse the repository at this point in the history
PR-URL: #9142
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Evan Lucas <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
  • Loading branch information
rvagg authored and jasnell committed Oct 19, 2016
1 parent 154bd93 commit 8b05ab0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,14 @@ function sign {

if [ "${gpgtagkey}" != "${gpgkey}" ]; then
echo "GPG key for \"${version}\" tag is not yours, cannot sign"
exit 1
fi

ghtaggedversion=$(curl -sL https://raw.githubusercontent.com/nodejs/node/${version}/src/node_version.h \
| awk '/define NODE_(MAJOR|MINOR|PATCH)_VERSION/{ v = v "." $3 } END{ v = "v" substr(v, 2); print v }')
if [ "${version}" != "${ghtaggedversion}" ]; then
echo "Could not find tagged version on github.com/nodejs/node, did you push your tag?"
exit 1
fi

shapath=$(ssh ${webuser}@${webhost} $signcmd nodejs $version)
Expand Down

0 comments on commit 8b05ab0

Please sign in to comment.