chore(deps): update dependency wrangler to v3.78.8 #464
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Cloudflare Workers | |
on: [push, workflow_dispatch] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test-and-deploy: | |
runs-on: ubuntu-latest | |
name: Test and deploy | |
steps: | |
- name: Checkout 🧳 | |
uses: actions/checkout@v4 | |
- name: Setup PNPM ⚙️ | |
uses: AkashRajpurohit/.github/.github/actions/setup-pnpm@main | |
with: | |
node_version: 20 | |
pnpm_version: 9 | |
- name: Install dependencies ⏬ | |
run: pnpm install --no-frozen-lockfile | |
# Run tests | |
- name: Run tests 🫡 | |
run: yarn test | |
- name: Upload Test Results ⏫ | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: .coverage/ | |
# Deploy | |
- name: Deploy 🚀 | |
# Deploy only when code is pushed to main branch | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: yarn deploy | |
env: | |
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }} | |
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} |