fix: add node binary to the Appium bundle (#13987)

This commit is contained in:
Isaac A. Murchie
2020-02-25 09:24:23 -05:00
committed by GitHub
parent e34d6f30ce
commit 9fccbc426b

View File

@@ -25,9 +25,17 @@ jobs:
displayName: npm run build
- script: npm prune --production
displayName: Get rid of dev dependencies
- script: |
curl -o node-darwin.tar.gz https://nodejs.org/dist/v12.16.1/node-v12.16.1-darwin-x64.tar.gz
mkdir node-darwin-unpacked
tar -xzf node-darwin.tar.gz -C node-darwin-unpacked/ --strip-components 1
rm -f node-darwin.tar.gz
cp node-darwin-unpacked/bin/node node-darwin
rm -rf node-darwin-unpacked
displayName: Download NodeJS
- script: npm run zip
displayName: Create the bundle zip
- script: npm install
- script: npm install
displayName: Reinstall dev dependencies
- task: PublishPipelineArtifact@0
inputs: