Fix node versioin

This commit is contained in:
Mazen El-Kashef
2020-05-19 23:37:57 -05:00
parent 29f184d6af
commit 397afdeca0
7 changed files with 17 additions and 17 deletions

View File

@@ -11,7 +11,7 @@
"colors": "1.1.2",
"donna": "1.0.16",
"electron-chromedriver": "^6.0.0",
"electron-link": "0.4.2",
"electron-link": "^0.4.2",
"electron-mksnapshot": "^6.0.0",
"electron-packager": "^14.2.1",
"@atom/electron-winstaller": "0.0.1",

View File

@@ -32,8 +32,8 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: 12.14.0
displayName: Install Node.js 12.14.0
versionSpec: 12.4.0
displayName: Install Node.js 12.4.0
#This has to be done separately because VSTS inexplicably
#exits the script block after `npm install` completes.

View File

@@ -24,8 +24,8 @@ jobs:
- task: NodeTool@0
inputs:
versionSpec: 12.14.0
displayName: Install Node.js 12.14.0
versionSpec: 12.4.0
displayName: Install Node.js 12.4.0
- script: npm install --global npm@6.13.4
displayName: Update npm

View File

@@ -14,8 +14,8 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: 12.14.0
displayName: Install Node.js 12.14.0
versionSpec: 12.4.0
displayName: Install Node.js 12.4.0
#- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
# displayName: Restore node_modules cache
@@ -29,7 +29,7 @@ jobs:
env:
CI: true
CI_PROVIDER: VSTS
NPM_BIN_PATH: /Users/runner/hostedtoolcache/node/12.14.0/x64/bin/npm
NPM_BIN_PATH: /Users/runner/hostedtoolcache/node/12.4.0/x64/bin/npm
npm_config_build_from_source: true
condition: ne(variables['CacheRestored'], 'true')
@@ -112,8 +112,8 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: 12.14.0
displayName: Install Node.js 12.14.0
versionSpec: 12.4.0
displayName: Install Node.js 12.4.0
- task: 1ESLighthouseEng.PipelineArtifactCaching.RestoreCacheV1.RestoreCache@1
displayName: Restore node_modules cache
@@ -129,7 +129,7 @@ jobs:
env:
CI: true
CI_PROVIDER: VSTS
NPM_BIN_PATH: /Users/runner/hostedtoolcache/node/12.14.0/x64/bin/npm
NPM_BIN_PATH: /Users/runner/hostedtoolcache/node/12.4.0/x64/bin/npm
npm_config_build_from_source: true
condition: ne(variables['CacheRestored'], 'true')

View File

@@ -26,8 +26,8 @@ jobs:
- task: NodeTool@0
inputs:
versionSpec: 12.14.0
displayName: Install Node.js 12.14.0
versionSpec: 12.4.0
displayName: Install Node.js 12.4.0
- script: |
ECHO Installing npm-windows-upgrade
@@ -70,7 +70,7 @@ jobs:
BUILD_ARCH: $(buildArch)
CI: true
CI_PROVIDER: VSTS
NPM_BIN_PATH: "C:\\hostedtoolcache\\windows\\node\\12.14.0\\x64\\npm.cmd"
NPM_BIN_PATH: "C:\\hostedtoolcache\\windows\\node\\12.4.0\\x64\\npm.cmd"
npm_config_build_from_source: true
displayName: Bootstrap build environment
condition: ne(variables['CacheRestored'], 'true')

View File

@@ -38,8 +38,8 @@ jobs:
steps:
- task: NodeTool@0
inputs:
versionSpec: 12.14.0
displayName: Install Node.js 12.14.0
versionSpec: 12.4.0
displayName: Install Node.js 12.4.0
# This has to be done separately because VSTS inexplicably
# exits the script block after `npm install` completes.

View File

@@ -5,7 +5,7 @@ const path = require('path');
const download = require('download');
const childProcess = require('child_process');
const nodeVersion = '12.14.0';
const nodeVersion = '12.4.0';
const nodeFileName = `node-v${nodeVersion}-win-x86`;
const extractedNodePath = `c:\\tmp\\${nodeFileName}`;