Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
worker-configuration.d.ts linguist-generated=true
23 changes: 12 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,32 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v6
with:
version: 11.5.2

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
cache: pnpm

- name: Install dependencies
run: npm ci
run: pnpm install

- name: Type check
run: npm run check
run: pnpm run check

- name: Build
run: npm run build
run: pnpm run build

- name: Verify Cloudflare token
run: npx wrangler whoami

- name: Provision Cloudflare resources
id: provision
run: node scripts/provision-cloudflare.mjs
run: pnpx wrangler whoami

- name: Apply D1 migrations
run: npx wrangler d1 migrations apply "${{ steps.provision.outputs.d1_database_name }}" --remote --config "${{ steps.provision.outputs.wrangler_config }}"
run: pnpx wrangler d1 migrations apply "${{ steps.provision.outputs.d1_database_name }}" --remote --config "${{ steps.provision.outputs.wrangler_config }}"

- name: Deploy Worker
run: |
Expand All @@ -77,7 +78,7 @@ jobs:
log_file=".wrangler/deploy-attempt-${attempt}.log"
echo "Deploy attempt ${attempt} of 3"

if npx wrangler deploy "${deploy_args[@]}" 2>&1 | tee "${log_file}"; then
if pnpx wrangler deploy "${deploy_args[@]}" 2>&1 | tee "${log_file}"; then
exit 0
else
status=$?
Expand Down
Loading