zuul-jobs/roles/upload-npm/README.rst
Ian Wienand 1520fb6474 upload-npm : support authToken argument
Support setting authToken to use a token for upload rather than
username/password.

This is "based" on Id0c47d088d6e8febbae3c96caecc81ebe247754e which
does the same for pypi.  There we run a test by uploading to the test
pypi server, I'm not aware of a similar thing for npm.

Change-Id: Ie8610bdfaa33b2120a61802c12e6ba534fe55464
2022-09-07 13:27:01 +10:00

47 lines
1.0 KiB
ReStructuredText

Upload javascript packages to npm
**Role Variables**
.. zuul:rolevar:: npm_credentials
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:: authToken
An auth token (issued from the npm server) to authenticate with.
This is required if you are using two-factor authentication. If
specifying an authToken you should not specify ```username`` and
``password``.
.. 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.