Skip to content

Update dependency wrangler to v3.60.2 #213

Update dependency wrangler to v3.60.2

Update dependency wrangler to v3.60.2 #213

Workflow file for this run

name: Deploy Worker
on:
pull_request:
push:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: ".nvmrc"
- run: npm install
- run: npm test
deploy:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
environment: production
needs: test
steps:
- uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version-file: ".nvmrc"
- run: npm install --omit=dev
- name: Build & Deploy Worker
uses: cloudflare/wrangler-action@a08dc762e87e8754e0d56a16a35a70b406bc869f # v3
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}