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}}