chore(deps): update dependency wrangler to v3.68.0 #434
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: | |
- uses: actions/checkout@v4 | |
# Setup the project | |
- name: Use Node.js π₯ | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
- name: Install Dependencies π½ | |
run: yarn install --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 }} |