Skip to content

Fix paths in yarn docs #477

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 14, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions jekyll/_docs/install-and-use-yarn.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ description: "How to modify `circle.yml` in order to install and use Yarn on Cir
```
machine:
environment:
YARN_VERSION: 0.17.8
PATH: "${PATH}:${HOME}/.yarn/bin"
YARN_VERSION: 0.18.0
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
```

We've set the Yarn version here to reduce the number of moving parts in the build. Although the Yarn install script sets its `PATH`, running from cache requires adding `~/.yarn/bin/` explicitly.
Expand All @@ -32,7 +32,7 @@ dependencies:
fi
cache_directories:
- ~/.yarn
- ~/.yarn-cache
- ~/.cache/yarn
```

Here, the Yarn install script runs if and only if:
Expand Down Expand Up @@ -70,8 +70,8 @@ machine:
```
machine:
environment:
YARN_VERSION: 0.17.8
PATH: "${PATH}:${HOME}/.yarn/bin"
YARN_VERSION: 0.18.0
PATH: "${PATH}:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"

dependencies:
pre:
Expand All @@ -86,7 +86,7 @@ dependencies:
- yarn install
cache_directories:
- ~/.yarn
- ~/.yarn-cache
- ~/.cache/yarn

test:
override:
Expand Down