Skip to content

Request: Install Newer Version of Wrangler by Default #366

@CNX-Inc

Description

@CNX-Inc

Noting, this might be something with my project (I'm not much of a node user but i have updated my package.json and package-lock.json files to no avail.

It seems as though the action installs an outdated wrangler by default, from my logs:
/usr/local/bin/npm i wrangler@3.90.0

Currently I'm using Wrangler 4.14.1 (locally) and the older version seems to not like to deploy.

Here's how I've worked around the issue, but thought you all might want to update the default or maybe provide an version: 4.14.1 option to with:

Thanks!

  deploy:
    runs-on: ubuntu-latest
    name: Deploy
    steps:
      - uses: actions/checkout@v4
      - name: Deploy
        uses: cloudflare/wrangler-action@v3
        with:
          apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
          workingDirectory: "data-worker"
          preCommands: |
            echo "*** pre commands ***"
            echo `pwd`
            npx wrangler --version
            npm install wrangler@latest
            echo "******"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions