Skip to content

Commit

Permalink
Update S3-deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan-ttpl authored Jan 3, 2025
1 parent 08b938c commit 68fafa5
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions .github/workflows/S3-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,9 @@ jobs:
rm -rf node_modules
rm -f package-lock.json
- name: Install Compatible ajv Versions
run: |
npm install ajv@8 ajv-keywords@5 --save
- name: Install Dependencies
run: npm install --legacy-peer-deps

- name: Audit Dependencies
run: npm audit || true

- name: Clean Build Directory
run: rm -rf ./build


- name: Build and Package Application
env:
WDS_SOCKET_PORT: ${{ vars.WDS_SOCKET_PORT }}
Expand Down Expand Up @@ -74,7 +64,7 @@ jobs:
FAST_REFRESH: ${{ vars.FAST_REFRESH }}
REACT_APP_AWS_ACCESS_KEY_ID: ${{ secrets.REACT_APP_AWS_ACCESS_KEY_ID }}
REACT_APP_AWS_SECRET_ACCESS_KEY: ${{ secrets.REACT_APP_AWS_SECRET_ACCESS_KEY }}
CI: false
CI: false # Disabling CI to not treat warnings as errors
run: npm run build

- name: Deploy to S3 Bucket
Expand All @@ -84,6 +74,7 @@ jobs:
run: |
echo "REACT_APP_AWS_S3_BUCKET_NAME: $REACT_APP_AWS_S3_BUCKET_NAME"
echo "AWS_REGION: $AWS_REGION"
echo "secrate": ${{ vars.REACT_APP_AWS_S3_BUCKET_NAME }}
- name: Cloudfront Invalidation
uses: chetan/invalidate-cloudfront-action@master
Expand Down

0 comments on commit 68fafa5

Please sign in to comment.