build: unify YARN_VERSION variable usage and ensure CI uses yarn not npm (#18607)

* build: unify YARN_VERSION variable usage and ensure CI uses yarn not npm

* chore: use a JS helper so that it can work on windows

* chore: make script/yarn without node_modules installed
This commit is contained in:
Samuel Attard 2019-06-05 16:30:39 -07:00 committed by GitHub
parent 0fc172fcaf
commit a45afddb75
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 35 additions and 18 deletions

View file

@ -1,11 +1,9 @@
// KEEP IN SYNC WITH DEPS FILE
const YARN_VERSION = '1.15.2'
const { GitProcess } = require('dugite')
const fs = require('fs')
const path = require('path')
const OUT_DIR = process.env.ELECTRON_OUT_DIR || 'Debug'
const { GitProcess } = require('dugite')
const path = require('path')
require('colors')
const pass = '\u2713'.green
const fail = '\u2717'.red
@ -45,6 +43,5 @@ module.exports = {
getCurrentBranch,
getElectronExec,
getAbsoluteElectronExec,
OUT_DIR,
YARN_VERSION
OUT_DIR
}