Add version for github actions key #9
Workflow file for this run
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] | |
jobs: | |
deploy-api: | |
name: Deploy API | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: packages/api | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: | | |
pnpm run generate:json | |
pnpm run build | |
- name: Deploy | |
uses: cloudflare/wrangler-action@v3 | |
with: | |
packageManager: pnpm | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
command: pages deploy |