mirror of
https://github.com/drone-plugins/drone-npm.git
synced 2026-06-04 18:23:52 +08:00
Formating
This commit is contained in:
@@ -122,12 +122,12 @@ func (p *pluginImpl) Exec() error {
|
||||
/// writeNpmrc creates a .npmrc in the folder for authentication
|
||||
func (p *pluginImpl) writeNpmrc() error {
|
||||
var f func(settings Settings) string
|
||||
if len(p.settings.Token) == 0 {
|
||||
if len(p.settings.Token) == 0 {
|
||||
logrus.WithFields(logrus.Fields{
|
||||
"username": p.settings.Username,
|
||||
"email": p.settings.Email,
|
||||
}).Info("Specified credentials")
|
||||
f = npmrcContentsUsernamePassword
|
||||
f = npmrcContentsUsernamePassword
|
||||
} else {
|
||||
logrus.Info("Token credentials being used")
|
||||
f = npmrcContentsToken
|
||||
|
||||
Reference in New Issue
Block a user