Use the node installer task

This commit is contained in:
Ben Jackson 2020-08-21 18:14:59 +01:00 • committed by GitHub
commit dc57ed7a67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,13 +74,19 @@ stages:
pool: pool:
vmImage: 'macOS-10.14' vmImage: 'macOS-10.14'
steps: steps:
# Node.js tool installer
# Finds or downloads and caches the specified version spec of Node.js and adds it to the PATH
- task: NodeTool@0
inputs:
versionSpec: '>=12.0.0'
- bash: | - bash: |
brew update brew update
for p in macvim node tcl-tk llvm; do brew doctor
for p in macvim tcl-tk llvm; do
brew install $p brew install $p
brew outdated $p || brew upgrade $p brew outdated $p || brew upgrade $p
done done
find /usr/local/include/node -type d -exec chmod +w {} \;
brew link --force --overwrite node brew link --force --overwrite node
displayName: 'Install vim and node' displayName: 'Install vim and node'