Skip to content

Commit 6c1f89b

Browse files
committed
Fix SAM build: use npm run build to get esbuild on PATH
1 parent f702f22 commit 6c1f89b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/backend.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,23 @@ jobs:
3434
run: npm test
3535
- name: Build
3636
working-directory: backend
37-
run: npm run build
37+
run: |
38+
echo "=== Before build ==="
39+
ls -la
40+
echo "=== Running npm run build (uses node_modules/.bin for esbuild) ==="
41+
npm run build
42+
echo "=== After build ==="
43+
ls -la
44+
ls -la .aws-sam/ || echo "ERROR: .aws-sam not created by build!"
45+
ls -la .aws-sam/build/ || echo "ERROR: .aws-sam/build not found!"
46+
echo "=== PWD ==="
47+
pwd
3848
- name: Store artifacts
3949
uses: actions/upload-artifact@v4
4050
with:
4151
name: sam-build
4252
path: backend/.aws-sam
53+
if-no-files-found: error
4354

4455
deploy:
4556
needs: build

0 commit comments

Comments
 (0)