zuul-jobs/roles/upload-npm
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
..
defaults linters: fix spaces between filters 2022-07-27 17:13:39 +10:00
tasks upload-npm : support authToken argument 2022-09-07 13:27:01 +10:00
templates upload-npm : support authToken argument 2022-09-07 13:27:01 +10:00
README.rst upload-npm : support authToken argument 2022-09-07 13:27:01 +10: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.

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.

Email associated with the npm account.

npm author name.

npm author url.

npm author email.