From d4ea981f7fbe2f4a09dcc89c347e66a0c9f9251c Mon Sep 17 00:00:00 2001 From: meriadec Date: Tue, 2 Oct 2018 22:18:45 +0200 Subject: [PATCH] Alternative way to install latest yarn on CI relatable #1555 --- .circleci/config.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5eddfa50..c9faa4ea 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,12 +13,10 @@ jobs: - run: name: Install latest yarn command: | - curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" ; - sudo mkdir -p /opt ; - sudo tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ ; - sudo ln -sf /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn ; - sudo ln -sf /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg ; - rm yarn-v$YARN_VERSION.tar.gz + curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - ; + echo "deb http://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 rm /usr/local/bin/yarn # remove docker yarn - checkout - restore_cache: keys: