force release #12
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: | |
runs-on: ubuntu-latest | |
name: Deploy | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
cache: 'yarn' | |
env: | |
SKIP_YARN_COREPACK_CHECK: '1' | |
- name: Install Yarn v3 | |
run: | | |
corepack enable | |
corepack prepare | |
- name: Install dependencies | |
run: yarn && yarn build | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
packageManager: yarn | |
apiToken: ${{ secrets.WORKERS_TOKEN }} | |
accountId: ${{ secrets.WORKERS_ACCOUNT_ID }} | |
workingDirectory: examples/workers |