-
Notifications
You must be signed in to change notification settings - Fork 175
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
Fix installing Wrangler using pnpm #339
Conversation
Hi, could you please take a look at this PR when you have time? It's been pending for a while. Let me know if any changes are needed. Thanks. |
Hi @Leetfs 👋, sorry for taking so long to respond! I'm not sure if it's common for GitHub actions to install packages to the global scope, since it seems to me that now our action might be introducing some unintended side effects. I think I would recommend users to instead use the official pnpm action https://github.com/pnpm/action-setup, and then invoke wrangler-action with your globally installed package. What do you think? |
Hi @Maximo-Guk , thanks for your reply I retested the workflow, using Please note:
I think it will be more convenient to install |
@Leetfs Are you able to install wrangler in the root package.json of your project? https://github.com/mtftm/test/blob/main/package.json#L14
If you have wrangler specified in your root package.json, it should become available to the action as well, meaning you wouldn't even need to add |
@Maximo-Guk Sure ~ but I still recommend fixing this. Perhaps I would suggest using the This might confuse developers who haven't specified Additionally, there are the following reasons:
In summary, it is recommended to modify the installation command in response to the pnpm error. Thank you for your attention. |
@Maximo-Guk Okay~Thank you for your attention to this PR. |
issue: #338
test url: https://github.com/Leetfs-dev/test/actions/runs/12271068666/job/34238417617