Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit fe0cd4e

Browse files
committed
update
1 parent b2a6d17 commit fe0cd4e

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/deploy.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,20 @@ jobs:
2424
with:
2525
node-version: '20'
2626

27-
- name: Install dependencies
27+
- name: Install all deps for build
2828
run: npm ci
2929

3030
- name: Build TypeScript
3131
run: npm run build
3232

33+
- name: Remove node_modules and reinstall prod-only deps
34+
run: |
35+
rm -rf node_modules
36+
npm ci --omit=dev
37+
38+
- name: Build TypeScript
39+
run: npm run build
40+
3341
- name: Zip Lambda function
3442
run: |
3543
zip -r function.zip dist/* node_modules/

0 commit comments

Comments
 (0)