Closed wydengyre closed 6 months ago
As a workaround for that, you can read it in a separate step and reuse that value with something like this:
...
- name: Set wrangler version
id: wrangler
run: echo "version=$(jq -r .devDependencies.wrangler package.json | cut -c2-)" >> "$GITHUB_OUTPUT"
...
- name: Build something awesome
uses: cloudflare/wrangler-action@v3.4.1
with:
...
wranglerVersion: ${{ steps.wrangler.outputs.version }}
This issue is resolved as of cloudflare/wrangler-action@v3.6.0
.
It should be possible to tell the action to get the wrangler version from
package.json
dependencies. I'd even say that is sensible default behavior.