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 [email protected]
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 "******"
Noting, this might be something with my project (I'm not much of a node user but i have updated my
package.jsonandpackage-lock.jsonfiles to no avail.It seems as though the action installs an outdated wrangler by default, from my logs:
/usr/local/bin/npm i [email protected]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.1option towith:Thanks!