[RRFC] require authentication only once during one single npm publish using workspaces

Aperta
#778 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript

Direzione di ricerca

Non vengono indicati file o test. Inizia dalla discussione sulla RFC e dal comando npm publish usando le opzioni -w workspace, quindi traccia il modo in cui viene gestita l’autenticazione nei pacchetti selezionati. Il lavoro è completato quando esiste una proposta decisa che specifichi una sola richiesta di autenticazione per tutti i pacchetti selezionati senza fare affidamento sul bypass di cinque minuti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Motivation ("The Why")

I have a lot of mono-repos, which want to be published every once in a while. When using the workspace option to publish multiple packages at once, I get multiple prompts for authentication.

Yes, I can check the checkbox in the web-UI to not be prompted within the next 5 minutes, but that is not my intention in this case. I only want to publish the specified packages. The option to not be bothered for 5 minutes also seems like an unnecessary risk for this use-case.

I remember, that at least some time ago, lerna was able to publish multiple packages with one OTP prompt. Not sure how they did it, but that was comfortable. Not sure if they still support it though, haven't used it in a while.

Example

I have a mono-repo with 3 packages.

  • I adjust the versions on 2 of them and want to publish them via CLI.
  • I run npm publish --access public -w pack1 -w pack2
  • I have published my packages successfully
How
Current Behaviour

When I run npm publish --access public -w pack1 -w pack2, I have two options for authentication:

  • open the web-UI authentication link once per package to be released
  • open the first web-UI authentication link and check the checkbox to not be bothered for the next 5 minutes
Desired Behaviour

When I run npm publish --access public -w pack1 -w pack2, I get only one web-UI authentication link, even if I don't check the checkbox to not be bothered for 5 minutes.

References
  • n/a
Lingua principale
JavaScript
Stelle
780
Fork
266
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di npm/rfcs

Tutte le issue di npm/rfcs

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.