mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 10:30:15 +02:00
CI: further attempts to get Windows to play nicely
This commit is contained in:
parent
4beae0de71
commit
05ca7d3129
@ -2,11 +2,11 @@
|
|||||||
|
|
||||||
const { spawnSync } = require('child_process');
|
const { spawnSync } = require('child_process');
|
||||||
|
|
||||||
const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG, TRAVIS_TAG } = process.env;
|
const { prebuild_upload: hasToken, APPVEYOR_REPO_TAG_NAME, TRAVIS_TAG } = process.env;
|
||||||
|
|
||||||
if (hasToken && (Boolean(APPVEYOR_REPO_TAG) || TRAVIS_TAG)) {
|
if (hasToken && (APPVEYOR_REPO_TAG_NAME || TRAVIS_TAG)) {
|
||||||
spawnSync(
|
spawnSync('node',
|
||||||
'node ./node_modules/.bin/prebuild --runtime napi --target 3',
|
['./node_modules/prebuild/bin.js', '--runtime', 'napi', '--target', '3'],
|
||||||
{ shell: true, stdio: 'inherit' }
|
{ shell: true, stdio: 'inherit' }
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user