mirror of
https://github.com/rgl/nexus-vagrant.git
synced 2026-10-17 17:45:32 +02:00
mention that we can also use the NPM_TOKEN environment variable when publishing package
This commit is contained in:
@@ -64,6 +64,8 @@ npm_auth_token=$(NODE_PATH=$PWD/node_modules node --use-openssl-ca /vagrant/prov
|
||||
npm set //$nexus_domain/repository/npm-hosted/:_authToken $npm_auth_token
|
||||
|
||||
# publish.
|
||||
# NB instead of using the token from the npm configuration you can
|
||||
# export the NPM_TOKEN environment variable.
|
||||
npm publish --registry=$NPM_REGISTRY
|
||||
popd
|
||||
|
||||
|
||||
@@ -90,6 +90,8 @@ $npmAuthToken = node --use-openssl-ca /vagrant/provision/npm-login.js 2>$null
|
||||
npm set "//$nexusDomain/repository/npm-hosted/:_authToken" $npmAuthToken
|
||||
|
||||
# publish.
|
||||
# NB instead of using the token from the npm configuration you can
|
||||
# set the NPM_TOKEN environment variable.
|
||||
npm publish --registry=$env:NPM_REGISTRY
|
||||
popd
|
||||
|
||||
|
||||
Reference in New Issue
Block a user