Skip to content

Move prerequisite+git checks before the wizard #784

@fregante

Description

@fregante

Description

Very often I'll go through the wizard only to be stopped on obvious checks like Check current branch, so I have to repeat.

I think all checks that are not related to user input should be run first:

  ✔ Prerequisite check
  ❯ Git
    ✖ Check current branch
      → Not on `main` branch. Use --any-branch to publish anyway, or set a diffe…
      Check local working tree
      Check remote history

Possible implementation

There are actually other checks that are already run before the wizard but they don't have any UI, see the version check in #781

So maybe the UI should be split in two:

  - Prerequisite check
  - Git

Input data here

  - Bumping version
  - Publishing package
  - Pushing tags
  - Creating release draft on GitHub

This could be a single "Taskr" list but it's easier to just split into two independent lists, at least until:

Alternatives

  1. Enter data
  2. See failure (wrong branch)
  3. Enter data again
  4. See different failure (forgot to npm install?)
  5. againnnn

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions