public IDisposable TemporarySetPushTargetAndPasswordLogin(string pushUri, string password) { return(TempFileTextModification.TemporaryInjectNPMToken(NPMRCPath, pushUri, PackageJson.Scope, (npmrc, u) => { npmrc.Add(u + ":username=CodeCakeBuilder"); npmrc.Add(u + ":_password=" + password); })); }
public IDisposable TemporarySetPushTargetAndTokenLogin(string pushUri, string token) { return(TempFileTextModification.TemporaryInjectNPMToken(NPMRCPath, pushUri, PackageJson.Scope, (npmrc, u) => npmrc.Add(u + ":_authToken=" + token))); }