Skip to content

fix(deps): update all non-major dependencies #720

fix(deps): update all non-major dependencies

fix(deps): update all non-major dependencies #720

name: CI/CD
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
quality:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
strategy:
matrix:
command: ['test', 'lint', 'tsc']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 20.8
cache: 'yarn'
- name: install dependencies
run: yarn --frozen-lockfile
- name: Run tests and lint
uses: borales/actions-yarn@v4
with:
cmd: ${{ matrix.command }}
build:
if: github.event_name == 'push'
runs-on: ubuntu-latest
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
AWS_S3_BUCKET_NAME: ${{ github.ref == 'refs/heads/main' && secrets.AWS_S3_BUCKET_NAME_PRD || secrets.AWS_S3_BUCKET_NAME_HOM }}
AWS_DISTRIBUTION_ID: ${{ github.ref == 'refs/heads/main' && secrets.AWS_DISTRIBUTION_ID_PRD || secrets.AWS_DISTRIBUTION_ID_HOM }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 20.8
- uses: shinyinc/[email protected]
- name: install dependencies
run: yarn --frozen-lockfile
- name: build projects
run: yarn ${{ github.ref == 'refs/heads/main' && 'build' || 'build:staging' }}
- name: sync static with s3
run: aws s3 sync apps/static s3://$AWS_S3_BUCKET_NAME
- name: sync react with s3
run: aws s3 sync apps/react/dist s3://$AWS_S3_BUCKET_NAME/react
- name: sync container with s3
run: aws s3 sync apps/container/dist s3://$AWS_S3_BUCKET_NAME/app
- name: invalidate cloudfront cache
run: aws cloudfront create-invalidation --distribution-id $AWS_DISTRIBUTION_ID --paths "/*"