Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Support running the appcenter-cli using npx #2

Open
goetzc opened this issue Jul 1, 2020 · 1 comment
Open

Support running the appcenter-cli using npx #2

goetzc opened this issue Jul 1, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@goetzc
Copy link

goetzc commented Jul 1, 2020

On some systems it might not be possible or feasible to have the CLI application installed globally and instead have it installed locally as part of other npm modules. In such situations when the CLI tool is installed as part of the npm modules locally, it can be called using npx as npx appcenter.

Having this plugin with the ability to run the CLI using npx if found, would be very handy!

@goetzc
Copy link
Author

goetzc commented Jul 7, 2020

As a workaround, the npm binaries path can be added to the global PATH variable before executing this action.

    path = ENV.fetch('PATH')
    npm_bin = %x[npm bin].strip
    ENV.store('PATH', "#{npm_bin}:#{path}")

Although ideally the action should first try running using npx, this will correctly execute the appcenter CLI tool until then.

@Pranit-Harekar Pranit-Harekar added the enhancement New feature or request label Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants