Skip to content

Commit 544d7a6

Browse files
committed
fix: update GitHub Actions workflows to use server.cjs instead of server.js
🔧 Workflow Updates: - Update .github/workflows/ci.yml build verification to use server.cjs - Update .github/workflows/release.yml build verification to use server.cjs 🎯 Root Cause: GitHub Actions workflows were still referencing the old server.js file after we changed the build output to server.cjs for ES module compatibility. ✅ Verification: - Local build test: ✅ SUCCESS - Build verification command: ✅ require('./build/server.cjs') works - CI pipeline should now pass build verification step This resolves the 'Cannot find module ./build/server.js' error in GitHub Actions workflows.
1 parent 36260dc commit 544d7a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
echo "Verifying main entry point..."
8181
node -e "
8282
try {
83-
require('./build/server.js');
83+
require('./build/server.cjs');
8484
console.log('✅ Build verification: SUCCESS');
8585
} catch (error) {
8686
console.error('❌ Build verification: FAILED');

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
7575
- name: Verify build output
7676
run: |
7777
ls -la build/
78-
node -e "console.log('Build verification:', require('./build/server.js') ? 'SUCCESS' : 'FAILED')"
78+
node -e "console.log('Build verification:', require('./build/server.cjs') ? 'SUCCESS' : 'FAILED')"
7979
8080
- name: Upload build artifacts
8181
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)