From 0c4a45b1f427f30d37169191ffdcbe9768866bff Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 18 Aug 2020 14:31:33 +0100 Subject: [PATCH] CI: workaround Appveyor ignoring v-prefixed tag names --- install/prebuild-ci.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/install/prebuild-ci.js b/install/prebuild-ci.js index 1a6a2bef..a09356b8 100644 --- a/install/prebuild-ci.js +++ b/install/prebuild-ci.js @@ -2,8 +2,8 @@ const { execFileSync } = require('child_process'); -const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG_NAME, TRAVIS_TAG } = process.env; +const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG, TRAVIS_TAG } = process.env; -if (hasToken && (APPVEYOR_REPO_TAG_NAME || TRAVIS_TAG)) { +if (hasToken && (Boolean(APPVEYOR_REPO_TAG) || TRAVIS_TAG)) { execFileSync('prebuild', ['--runtime', 'napi', '--target', '3'], { stdio: 'inherit' }); }