mirror of
https://github.com/drone-plugins/drone-npm.git
synced 2026-06-04 18:23:52 +08:00
Change whoami command from required to optional (#60)
This commit is contained in:
committed by
GitHub
parent
827c3d9712
commit
cb8d56a12e
+4
-1
@@ -26,6 +26,7 @@ type (
|
||||
Username string
|
||||
Password string
|
||||
Token string
|
||||
SkipWhoami bool
|
||||
Email string
|
||||
Registry string
|
||||
Folder string
|
||||
@@ -219,7 +220,9 @@ func (p *Plugin) authenticate() error {
|
||||
}
|
||||
|
||||
// Write whoami command to verify credentials
|
||||
cmds = append(cmds, whoamiCommand())
|
||||
if !p.settings.SkipWhoami {
|
||||
cmds = append(cmds, whoamiCommand())
|
||||
}
|
||||
|
||||
// Run commands
|
||||
err := runCommands(cmds, p.settings.Folder)
|
||||
|
||||
Reference in New Issue
Block a user