Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Caching yarn global packages in pipelines

Steve Vaughan
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2018

Is is possible to configure a cache that will work for packages installed with `yarn global`?

I have tried the following, however the packages were not found when run after cache download:

image: node:9
pipelines:
default:
# Lint
- step:
name: Linting
caches:
- yarnglobal
script:
- yarn global add eslint eslint-plugin-react babel-eslint
- yarn lint
definitions:
caches:
yarnglobal: /usr/local/share/.config/yarn/global

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events