Executes the npm install
command with leveraging the wercker cache mechanism
to improve installation time (optional).
If npm install
fails, it will be retried three times before failing, and
optionally the cache will be cleared in between.
clear-cache-on-failed
(optional, default:true
) If npm fails, clear the cache before trying again.use-cache
(optional, default:true
) Use the npm cache.options
(optional) Allow for passing arbitrary arguments to npm.
build:
steps:
- npm-install
The MIT License (MIT)
- Ensure cache get's stored
- Add debug messages
- Add
clear-cache-on-failed
,use-cache
options.
- Add retry on error
- Fix wrong directory cache created
- Initial release