From 5909885d43512f362c5819481619caf7206e90cf Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 10 Sep 2018 23:10:42 -0700 Subject: [PATCH] Download and install yarn directly from deb --- azure-pipelines.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c4bdbc69..8c16d59c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,10 +13,8 @@ jobs: versionSpec: '8.x' displayName: 'Install Node.js' - script: | - curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - - echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list - sudo apt-get update && sudo apt-get install yarn - sudo apt-get install --no-install-recommends yarn + curl -sLO https://github.com/yarnpkg/yarn/releases/download/v1.10.0/yarn_1.10.0_all.deb + sudo dpkg -i yarn_1.10.0_all.deb displayName: 'Install yarn' - script: | yarn install