Skip to content

update github action #51

update github action

update github action #51

Workflow file for this run

name: Deploy
on: [push]
jobs:
staging:
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'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- run: HUSKY=0 npm ci
- run: npm test
- run: npm run build
- run: STAGE=staging npm run deploy
staging-cypress:
runs-on: ubuntu-22.04
needs: staging
steps:
- uses: actions/checkout@v4
- uses: cypress-io/github-action@v6
with:
install-command: HUSKY=0 npm ci
working-directory: packages/cypress-tests
prod:
runs-on: ubuntu-latest
needs: staging-cypress
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'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18.x
- run: HUSKY=0 npm ci
- run: npm test
- run: npm run build
- run: STAGE=prod npm run deploy