Skip to content

feat: Questionnaire Popup Modal & System Table #60

feat: Questionnaire Popup Modal & System Table

feat: Questionnaire Popup Modal & System Table #60

Workflow file for this run

name: UI
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
environment: dev
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- name: DEBUG - node, npm, yarn versions
run: |
echo "node --version: $(node --version)"
echo "npm --version: $(npm --version)"
echo "yarn --version: $(yarn --version)"
- name: CACHE - get yarn cache folder path
id: yarn-cache-path
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
- name: CACHE - yarn dependencies
id: yarn-cache
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }}
restore-keys: ${{ runner.os }}-yarn-
- name: INSTALL - dependencies
run: yarn install --immutable
- name: LINT
run: yarn lint
- name: BUILD
run: yarn build:dev
- name: Get AWS Creds
if: github.actor != 'dependabot[bot]'
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.ROLEARN }}
role-duration-seconds: 900
aws-region: us-east-1
- name: AWS Sync
if: github.actor != 'dependabot[bot]'
run: aws s3 sync ./dist s3://${{ secrets.BUCKET_NAME }}/ --delete