Skip to content

Commit bc48fc1

Browse files
committed
Fix Cloudflare deployment workflow
- Consolidated build and deploy steps into single jobs - Removed separate build-cloudflare job that was causing artifact issues - Each deploy job now builds and deploys in the same runner - This ensures build artifacts are available for wrangler deployment - Should resolve the npx command failure in Cloudflare deployment
1 parent 4b38080 commit bc48fc1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/cloudflare-branch.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@v4
2020
with:
21-
node-version: '22'
22-
cache: 'npm'
21+
node-version: "22"
22+
cache: "npm"
2323

2424
- name: Install dependencies
2525
run: npm ci
@@ -30,7 +30,7 @@ jobs:
3030
- name: Run unit tests
3131
run: npm run test:run
3232

33-
build-cloudflare:
33+
deploy-preview:
3434
runs-on: ubuntu-latest
3535
needs: test
3636
if: github.ref == 'refs/heads/cloudflare'
@@ -41,8 +41,8 @@ jobs:
4141
- name: Setup Node.js
4242
uses: actions/setup-node@v4
4343
with:
44-
node-version: '22'
45-
cache: 'npm'
44+
node-version: "22"
45+
cache: "npm"
4646

4747
- name: Install dependencies
4848
run: npm ci
@@ -65,7 +65,7 @@ jobs:
6565

6666
deploy-production:
6767
runs-on: ubuntu-latest
68-
needs: [test, build-cloudflare]
68+
needs: test
6969
if: github.ref == 'refs/heads/cloudflare' && github.event_name == 'push'
7070
steps:
7171
- name: Checkout code
@@ -74,8 +74,8 @@ jobs:
7474
- name: Setup Node.js
7575
uses: actions/setup-node@v4
7676
with:
77-
node-version: '22'
78-
cache: 'npm'
77+
node-version: "22"
78+
cache: "npm"
7979

8080
- name: Install dependencies
8181
run: npm ci

0 commit comments

Comments
 (0)