Skip to content

Bump cloudflare/wrangler-action from 3.7.0 to 3.8.0 (#385) #349

Bump cloudflare/wrangler-action from 3.7.0 to 3.8.0 (#385)

Bump cloudflare/wrangler-action from 3.7.0 to 3.8.0 (#385) #349

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
- staging
jobs:
deploy:
timeout-minutes: 2
runs-on: ubuntu-22.04
name: Deploy
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version-file: '.node-version'
cache: 'npm'
- name: Install npm dependencies
run: npm ci
- name: Set wrangler version
id: wrangler
run: echo "version=$(jq -r .devDependencies.wrangler packages/cf/package.json)" >> "$GITHUB_OUTPUT"
- name: Deploy
uses: cloudflare/wrangler-action@168bc28b7078db16f6f1ecc26477fc2248592143 # v3.8.0
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
wranglerVersion: ${{ steps.wrangler.outputs.version }}
workingDirectory: 'packages/cf'
command: deploy --env ${{ github.ref == 'refs/heads/main' && 'prod' || 'staging' }}