Bump @babel/traverse from 7.16.5 to 7.25.7 in /client (#6) #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Upload on AWS S3 | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "client/**" | |
defaults: | |
run: | |
working-directory: "client" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: production | |
env: | |
REACT_APP_API_URL: ${{ vars.REACT_APP_API_URL }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install Dependencies | |
run: npm install | |
- name: Checking version | |
run: node --version | |
- name: Test env | |
run: echo "$REACT_APP_API_URL" | |
- name: Create build | |
run: npm run build | |
- name: Save AWS Credentials | |
run: | | |
echo "AWS_ACCESS_KEY_ID=${{ secrets.ACCESS_KEY }}" >> "$GITHUB_ENV" | |
echo "AWS_SECRET_ACCESS_KEY=${{ secrets.SECRET_ACCESS_KEY }}" >> "$GITHUB_ENV" | |
echo "AWS_REGION=us-east-1" >> "$GITHUB_ENV" | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
aws-access-key-id: ${{ env.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ env.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ${{ env.AWS_REGION }} | |
- name: Upload to S3 | |
run: aws s3 sync ./build s3://video-hub-terraform --delete |