From b5eb51cf0a6c7c38926d2671260945145f7ea583 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Mon, 1 Apr 2024 08:14:06 -0700 Subject: [PATCH] Build the frontend and deploy the build artifacts. --- .github/workflows/deploy-frontend.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-frontend.yaml b/.github/workflows/deploy-frontend.yaml index 0e4bd6949..f3c3a0507 100644 --- a/.github/workflows/deploy-frontend.yaml +++ b/.github/workflows/deploy-frontend.yaml @@ -27,6 +27,17 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Setup NPM + uses: actions/setup-node@v4 + with: + node-version: '18.x' + + - name: Install dependencies + run: cd frontend && npm install + + - name: Build project + run: cd frontend && npm run build + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -35,4 +46,4 @@ jobs: aws-region: ${{inputs.aws_region}} - name: Deploy Frontend - run: aws s3 sync frontend s3://${{inputs.bucket}} + run: aws s3 sync frontend/dist s3://${{inputs.bucket}}