chore(deps): update dependency miniflare to v3.20240304.1 #118
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 | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy: | |
name: Deploy to Cloudflare Workers | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: ⎔ Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '16.x' | |
- name: ⎔ Cache node_modules | |
uses: actions/cache@v3 | |
env: | |
cache-name: node_modules-16x | |
with: | |
path: node_modules | |
key: ${{ runner.os }}-build-${{ env.cache-name }} | |
- name: 📥 Download deps | |
run: yarn install --frozen-lockfile | |
- name: 🧶 Publish worker to Cloudflare | |
uses: cloudflare/wrangler-action@v3.4.1 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: ${{ secrets.CF_ACCOUNT_ID }} | |
command: publish --env production |