Skip to content

skip exec confirmation prompt in ci #2047

New issue

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

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

Already on GitHub? # to your account

Closed
wants to merge 4 commits into from
Closed

Conversation

nlf
Copy link
Contributor

@nlf nlf commented Oct 26, 2020

this extends the previous test that skips the prompt when a tty is not present to also skip the prompt if it looks like we're running in a CI environment at all, which should hopefully fully resolve #1935

@nlf nlf requested a review from a team as a code owner October 26, 2020 18:12
@ljharb
Copy link
Contributor

ljharb commented Oct 26, 2020

it's confusing that CI services would run in a TTY :-/

@nlf
Copy link
Contributor Author

nlf commented Oct 26, 2020

it very much is confusing, i agree, but given the comments in #1935 it's definitely happening in at least some cases.

naturally i have some tests to fix that only fail when run in CI now, so i'll get that tidied up

@darcyclarke darcyclarke added release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release labels Oct 27, 2020
@nlf nlf closed this in 46c7f79 Oct 27, 2020
@nlf nlf deleted the nlf/skip-prompt-in-ci branch March 28, 2022 16:24
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
release: next These items should be addressed in the next release Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] npx behavior in CI environments
4 participants