From 8eceaa4e38cfc73a31e13aed3513cf30414cf147 Mon Sep 17 00:00:00 2001 From: Adam Scarberry <46494851+adamscarberry@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:27:01 -0500 Subject: [PATCH] try again --- .github/workflows/cwbi-dev-build-push.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cwbi-dev-build-push.yml b/.github/workflows/cwbi-dev-build-push.yml index 06264cf..40abccd 100644 --- a/.github/workflows/cwbi-dev-build-push.yml +++ b/.github/workflows/cwbi-dev-build-push.yml @@ -26,6 +26,20 @@ jobs: - name: Git clone the repository uses: actions/checkout@v3 + # Step 2: Set up Node.js (React app requires Node.js) + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '16' # Use the appropriate version of Node.js for your project + + # Step 3: Install dependencies + - name: Install Dependencies + run: npm install + + # Step 4: Build the React app for production + - name: Build React App + run: npm run build + - name: Configure AWS Credentials uses: aws-actions/configure-aws-credentials@v4 with: @@ -41,7 +55,8 @@ jobs: # uses: aws-actions/amazon-ecr-login@v2 # with: # mask-password: 'true' - - name: Build Image; Push to S3 + + - name: Deploy to S3 env: S3_BUCKET: cumulus-dev run: npm run deploy-develop