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.pre-command
(optional) Command that runs before npm install. E.g.env NODE_ENV=development
will runenv NODE_ENV=development npm install
.
build:
steps:
- npm-install
The MIT License (MIT)
- Add pre-command
- 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