mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
CI: workaround Appveyor ignoring v-prefixed tag names
This commit is contained in:
parent
ec2beb0039
commit
0c4a45b1f4
@ -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' });
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user