zuul-jobs/roles/upload-npm
Monty Taylor 20f7528a09
Add upload-npm role
We need a role for uploading content to npm. The old script assumed a
global npm install - but as this runs on the executor we shouldn't
assume that. Use nvm to install node into the work_dir and use the npm
from that node installation.

Change-Id: I7f7c031ce754838776043325025fe5928cd36135
2017-10-09 15:41:20 -05:00
..
defaults Add upload-npm role 2017-10-09 15:41:20 -05:00
tasks Add upload-npm role 2017-10-09 15:41:20 -05:00
templates Add upload-npm role 2017-10-09 15:41:20 -05:00
README.rst Add upload-npm role 2017-10-09 15:41:20 -05:00

Upload javascript packages to npm

Role Variables

Complex argument which contains the information about the npm server as well as the authentication information needed. It is expected that this argument comes from a Secret. This role expects to be run on the executor.

Username to use to log in to npm.

Password to use to log in to npm.

Email associated with the npm account.

npm author name.

npm author url.

npm author email.