ci(amplify): run image optimizer in Amplify preBuild; upload artifacts from GH Action

This commit is contained in:
Gregory Campbell
2026-06-03 21:55:34 -04:00
parent b415397a5a
commit 8b94c23397
2 changed files with 23 additions and 11 deletions
+18
View File
@@ -0,0 +1,18 @@
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- npm ci
- npm run optimize-images
build:
commands:
- npm run build
artifacts:
baseDirectory: build
files:
- "**/*"
cache:
paths:
- node_modules/**/