From c214b69bae1166445ca1bcb343c5d1391053012f Mon Sep 17 00:00:00 2001 From: Jiri Spac Date: Mon, 11 Mar 2024 10:16:06 +0100 Subject: [PATCH] docs: add warning about packageManager config (#242) --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 20a53d4..6a8c3ec 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,7 @@ jobs: - name: Deploy uses: cloudflare/wrangler-action@v3 with: + packageManager: pnpm # you can omit this if you use npm apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} ``` @@ -52,6 +53,10 @@ jobs: ## Configuration +### packageManager + +⚠️ you must specify package manager. If not specified GH action assumes you are using npm and other managers might be failing. For example pnpm will fail with: `Cannot read properties of null (reading 'matches')` + If you need to install a specific version of Wrangler to use for deployment, you can also pass the input `wranglerVersion` to install a specific version of Wrangler from NPM. This should be a [SemVer](https://semver.org/)-style version number, such as `2.20.0`: ```yaml