When passing in arguments (eg. np minor) it skips the UI (which is the part that determines the repoUrl) and consequently skips the 'Creating release draft on GitHub' task.
npx np minorLooking at ui.js, I think we should move the releaseNotes creation into a separate file, and extract the repoUrl detection from it (the detection should be done when using np programmatically as well, but I'm not sure what's the best way to organize this).
It seems like ui.js currently contains lots of functionality that is outside of its scope (as it belongs to the general scope of np), which should be separated from it to keep it single-purposed and maintainable.
I think this is fixed by https://github.com/sindresorhus/np/pull/378
Most helpful comment
Looking at
ui.js, I think we should move thereleaseNotescreation into a separate file, and extract therepoUrldetection from it (the detection should be done when usingnpprogrammatically as well, but I'm not sure what's the best way to organize this).It seems like
ui.jscurrently contains lots of functionality that is outside of its scope (as it belongs to the general scope ofnp), which should be separated from it to keep it single-purposed and maintainable.