Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not check if a 2FA token is required when on other registries #288

Merged

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Mar 5, 2020

Closes #247
Closes #287

The approach I've taken here is "if the registry isn't the npm registry or npm profile get fails, assume we don't need 2fa". Note that if the isRequired thing returns false but then a publish fails because of 2fa, we'll prompt for a token. npm profile get is purely an optimisation to make publishes faster.

@changeset-bot
Copy link

changeset-bot bot commented Mar 5, 2020

🦋 Changeset is good to go

Latest commit: 51db063

We got this.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codecov
Copy link

codecov bot commented Mar 5, 2020

Codecov Report

Merging #288 into master will not change coverage.
The diff coverage is 0%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master   #288   +/-   ##
=====================================
  Coverage      80%    80%           
=====================================
  Files          45     45           
  Lines        1220   1220           
  Branches      284    280    -4     
=====================================
  Hits          976    976           
  Misses        233    233           
  Partials       11     11
Impacted Files Coverage Δ
...ckages/cli/src/commands/publish/publishPackages.ts 73.33% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ca934d7...51db063. Read the comment docs.

@emmatown emmatown requested review from Noviny and removed request for Noviny March 5, 2020 21:49
@emmatown emmatown requested a review from Noviny March 5, 2020 22:53
@Noviny Noviny merged commit 2adfe66 into master Mar 5, 2020
@Noviny Noviny deleted the do-not-check-if-token-is-required-on-other-registries branch March 5, 2020 23:49
@github-actions github-actions bot mentioned this pull request Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible to publish to Github Packages? Not compatible with private npm registries (artifactory)
3 participants