Skip to content

Commit

Permalink
bug: yarn tag list prompted user for credentials removed (#5373)
Browse files Browse the repository at this point in the history
* bug: yarn tag list prompted user for credentials removed

* fix lint error
  • Loading branch information
seansabour authored and arcanis committed Feb 28, 2018
1 parent d52ce66 commit ef2b439
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/cli/commands/tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ export async function getName(args: Array<string>, config: Config): Promise<stri
async function list(config: Config, reporter: Reporter, flags: Object, args: Array<string>): Promise<void> {
const name = await getName(args, config);

reporter.step(1, 3, reporter.lang('loggingIn'));
const revoke = await getToken(config, reporter, name);

reporter.step(2, 3, reporter.lang('gettingTags'));
reporter.step(1, 1, reporter.lang('gettingTags'));
const tags = await config.registries.npm.request(`-/package/${name}/dist-tags`);

if (tags) {
Expand All @@ -44,9 +41,6 @@ async function list(config: Config, reporter: Reporter, flags: Object, args: Arr
}
}

reporter.step(3, 3, reporter.lang('revokingToken'));
await revoke();

if (!tags) {
throw new MessageError(reporter.lang('packageNotFoundRegistry', name, 'npm'));
}
Expand Down

0 comments on commit ef2b439

Please sign in to comment.