Runs yarn install leveraging Wercker cache to allow much faster repeat installs.
If yarn is not installed before the step is ran yarn will be installed for you.
production
(optional, defaultfalse
) If true passes--prod
flag to yarn and does not installdevDependencies
or removesdevDependencies
after buildcache
(optional, defaulttrue
) If true uses$WERCKER_CACHE_DIR
to persist cache from previous runs of the pipeline and for future runs of the pipelineoptions
(optional) Additional options to pass through to yarn, such as--flat
build:
steps:
- yarn:
name: install dependencies
- script:
name: build
script: npm build # Build here requires devDependencies
- yarn:
name: cleanup
production: true # Remove devDepdencies
The MIT License (MIT)
1.0.0
- Initial release