Skip to content

Commit

Permalink
Simplify frontend build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eternaltyro committed Apr 17, 2024
1 parent d489f49 commit a736b3b
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/frontend_build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,23 +27,16 @@ jobs:
node-version: [ 16 ]

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Install dependencies
run: |
cd frontend/
npm install --legacy-peer-deps
run: cd frontend/ && npm install --legacy-peer-deps

- name: Build
run: |
cd frontend/
npm run build
- name: Build frontend
run: cd frontend/ && npm run build

- name: Upload to S3
uses: aws-actions/configure-aws-credentials@v4
Expand All @@ -53,5 +46,4 @@ jobs:
role-session-name: fAIrGithub

- name: Install AWS CLI
run: |
aws s3 cp build/* s3://${{ env.FRONTEND_BUCKET }}/
run: aws s3 cp build/* s3://${{ env.FRONTEND_BUCKET }}/

0 comments on commit a736b3b

Please sign in to comment.