Browse Source

Alternative way to install latest yarn on CI

relatable #1555
gre-patch-1
meriadec 6 years ago
parent
commit
d4ea981f7f
No known key found for this signature in database GPG Key ID: 1D2FC2305E2CB399
  1. 10
      .circleci/config.yml

10
.circleci/config.yml

@ -13,12 +13,10 @@ jobs:
- run: - run:
name: Install latest yarn name: Install latest yarn
command: | command: |
curl -fsSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" ; curl -sS http://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - ;
sudo mkdir -p /opt ; echo "deb http://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list ;
sudo tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ ; sudo apt-get update && sudo apt-get install yarn
sudo ln -sf /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn ; sudo rm /usr/local/bin/yarn # remove docker yarn
sudo ln -sf /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg ;
rm yarn-v$YARN_VERSION.tar.gz
- checkout - checkout
- restore_cache: - restore_cache:
keys: keys:

Loading…
Cancel
Save