CI: workaround Appveyor ignoring v-prefixed tag names

This commit is contained in:
Lovell Fuller 2020-08-18 14:31:33 +01:00
parent ec2beb0039
commit 0c4a45b1f4

View File

@ -2,8 +2,8 @@
const { execFileSync } = require('child_process'); 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' }); execFileSync('prebuild', ['--runtime', 'napi', '--target', '3'], { stdio: 'inherit' });
} }