1
0
mirror of https://github.com/SAP/jenkins-library.git synced 2025-09-16 09:26:22 +02:00

Update publish.go

This commit is contained in:
maxcask
2025-08-18 12:42:45 +03:00
committed by GitHub
parent 4fcfe78d84
commit 578fabe887

View File

@@ -129,7 +129,7 @@ func (exec *Execute) publish(packageJSON, registry, username, password string, p
// where it states: the presence of auth related settings that are not scoped to a specific registry found in a config file
// is no longer supported and will throw errors
// printing registry and credentials that added
log.Entry().Infof("Added: registry %s, user %s", registry, username)
log.Entry().Debugf("Added: registry %s, user %s", registry, username)
npmrc.Set(fmt.Sprintf("%s:%s", strings.TrimPrefix(registry, "https:"), "_auth"), CredentialUtils.EncodeUsernamePassword(username, password))
npmrc.Set("always-auth", "true")
}