From 33dfcffe2cc10cd39268d550ce8e1eb3ff739684 Mon Sep 17 00:00:00 2001 From: Gregor Date: Sat, 19 Aug 2017 14:09:03 -0700 Subject: [PATCH] fix(bin): addapt build leader error to new leader detection algorithm --- bin/semantic-release.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/bin/semantic-release.js b/bin/semantic-release.js index 34c438c5..f202f797 100755 --- a/bin/semantic-release.js +++ b/bin/semantic-release.js @@ -9,13 +9,11 @@ if (semver.lt(process.version, '8.0.0')) { console.error( `semantic-release: node version >= 8 is required. Found ${process.version}. -If this error appears on a build job that is not your build leader, you can -safely ignore it. On Travis CI the build leader is the first job in the build -matrix. +If there is another job running on node version >= 8, it will be picked as +the build leader and you can safely ignore this message. -Only a single job in your entire build-matrix needs to run on node 8. All others -may safely fail with this message. If you don't have node 8 in your build -matrix "npx" allows to restore compatibility with minimal overhead. +If you don't have node 8 in your build matrix you can use "npx" to restore +compatibility with minimal overhead: $ npx -p node@8 npm run semantic-release