Skip to content

Commit

Permalink
docs: add warning about packageManager config (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
capaj authored Mar 11, 2024
1 parent bac2829 commit c214b69
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
```
Expand All @@ -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
Expand Down

0 comments on commit c214b69

Please sign in to comment.