From b0160a766ec6fe58d8be5f6fb5656c4494876c23 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 27 Nov 2018 20:19:29 +1100 Subject: [PATCH] tools: only sign release if promotion successful Ref: https://github.com/nodejs/build/pull/1596 --- tools/release.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/release.sh b/tools/release.sh index fcb5ef124261a1..aa52e809eaf3dd 100755 --- a/tools/release.sh +++ b/tools/release.sh @@ -196,7 +196,9 @@ for version in $versions; do ssh ${customsshkey} ${webuser}@${webhost} $promotecmd nodejs $version - sign $version + if [ $? -eq 0 ];then + sign $version + fi break done