20f7528a09
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
40 lines
800 B
ReStructuredText
40 lines
800 B
ReStructuredText
Upload javascript packages to npm
|
|
|
|
**Role Variables**
|
|
|
|
.. zuul:rolevar:: npm_info
|
|
|
|
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.
|
|
|
|
.. zuul:rolevar:: username
|
|
|
|
Username to use to log in to npm.
|
|
|
|
.. zuul:rolevar:: password
|
|
|
|
Password to use to log in to npm.
|
|
|
|
.. zuul:rolevar:: email
|
|
|
|
Email associated with the npm account.
|
|
|
|
.. zuul:rolevar:: author_name
|
|
|
|
npm author name.
|
|
|
|
.. zuul:rolevar:: author_url
|
|
|
|
npm author url.
|
|
|
|
.. zuul:rolevar:: author_email
|
|
|
|
npm author email.
|
|
|
|
.. zuul:rolevar:: registry_url
|
|
:default: //registry.npmjs.org
|
|
|
|
URL of npm registry server.
|