Unreverts #235 and don't automatically install wrangler when checking if it present by Maximo-Guk · Pull Request #271 · cloudflare/wrangler-action · GitHub
Skip to content

Unreverts #235 and don't automatically install wrangler when checking if it present - #271

Merged
Maximo-Guk merged 2 commits into
mainfrom
maximo/fixup-235
Jun 20, 2024
Merged

Maximo-Guk merged 2 commits into
mainfrom
maximo/fixup-235

Conversation

@Maximo-Guk

Copy link
Copy Markdown
Member

See !239 for more context

This PR adds the execNoInstall field to packageManagers, so that when we're executing wrangler to check if it present with our various package manager configurations, we don't automatically install it, in the case that it isn't present.

This was tested by running test-fixup-235 branch on the test-action branch of my demo-actions repo which contains hello-world workers applications for npm, pnpm, yarn and bun.

The successful pipeline where each package manager was tested https://github.com/Maximo-Guk/demo-actions/actions/runs/9533218220

cc @AdiRishi

@Maximo-Guk Maximo-Guk self-assigned this Jun 16, 2024
@AdiRishi

Copy link
Copy Markdown
Contributor

@AdiRishi AdiRishi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I'll add is that it might be good to add a test to ensure it installs the correct version of wrangler by default. Could be a test we add directly into deploy.yml, perhaps a simple exection of wrangler --version and checking that it returns the exected output.

@Maximo-Guk
Maximo-Guk marked this pull request as ready for review June 20, 2024 15:42
@Maximo-Guk
Maximo-Guk requested review from a team as code owners June 20, 2024 15:43
@Maximo-Guk

Copy link
Copy Markdown
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants