mirror of
https://github.com/drone-plugins/drone-npm.git
synced 2026-06-04 18:23:52 +08:00
(fix) remove deprecated always-auth npm config
This commit is contained in:
@@ -211,9 +211,6 @@ func (p *Plugin) authenticate() error {
|
||||
cmds = append(cmds, registryCommand(p.settings.Registry))
|
||||
}
|
||||
|
||||
// Write auth command
|
||||
cmds = append(cmds, alwaysAuthCommand())
|
||||
|
||||
// Write skip verify command
|
||||
if p.network.SkipVerify {
|
||||
cmds = append(cmds, skipVerifyCommand())
|
||||
@@ -319,11 +316,6 @@ func registryCommand(registry string) *exec.Cmd {
|
||||
return exec.Command("npm", "config", "set", "registry", registry)
|
||||
}
|
||||
|
||||
// alwaysAuthCommand forces authentication.
|
||||
func alwaysAuthCommand() *exec.Cmd {
|
||||
return exec.Command("npm", "config", "set", "always-auth", "true")
|
||||
}
|
||||
|
||||
// skipVerifyCommand disables ssl verification.
|
||||
func skipVerifyCommand() *exec.Cmd {
|
||||
return exec.Command("npm", "config", "set", "strict-ssl", "false")
|
||||
|
||||
Reference in New Issue
Block a user