| 95665447 | 15-Mar-2023 |
Gabriel Donadel Dall'Agnol <[email protected]> |
[tools] Fix publishing packages to NPM using OTP (#21448)
# Why
When you have set up a security key for your NPM account and attempt to
publish a package, an OTP (One-Time Password) code is requ
[tools] Fix publishing packages to NPM using OTP (#21448)
# Why
When you have set up a security key for your NPM account and attempt to
publish a package, an OTP (One-Time Password) code is required to be
entered. However, if you use the `et publish` command, the process fails
immediately without allowing you to input the OTP code. This is because
the user does not have direct access to the child process input.

# How
This PR updates the `publishPackageAsync` function to use the `stdio:
'inherit'` parameter so the user is able to interact with the `npm`
command and input the OTP code
# Test Plan
run `et publish`
# Checklist
<!--
Please check the appropriate items below if they apply to your diff.
This is required for changes to Expo modules.
-->
- [ ] Documentation is up to date to reflect these changes (eg:
https://docs.expo.dev and README.md).
- [ ] Conforms with the [Documentation Writing Style
Guide](https://github.com/expo/expo/blob/main/guides/Expo%20Documentation%20Writing%20Style%20Guide.md)
- [ ] This diff will work correctly for `expo prebuild` & EAS Build (eg:
updated a module plugin).
show more ...
|