cloudflare / wrangler-action

🧙‍♀️ easily deploy cloudflare workers applications using wrangler and github actions
Apache License 2.0
1.18k stars 152 forks source link

Is it possible to skip wrangler install? #259

Closed zoubingwu closed 4 months ago

zoubingwu commented 5 months ago

Looks like there is no way to skip the wrangler installations.

I already have it in package.json and all dependencies will be installed before deploy:

{
    "devDependencies": {
        "wrangler": "3.53.0"
    }
}
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
  with:
    version: 8
- uses: actions/setup-node@v4
  with:
    node-version: 'lts/Iron'
    cache: 'pnpm'
- name: Install dependencies
  run: pnpm install
- name: Deploy
  uses: cloudflare/wrangler-action@v3
  with:
      apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
      accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

But it installed another old version

image

Is there any way to skip it from installing twice?

AdiRishi commented 4 months ago

We're working on this in the PR I linked above. You can probably close this issue, it's a duplicate of #199