v1.110.12 #2
Workflow file for this run
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
on: | |
release: | |
types: [created] | |
name: Build and Deploy | |
jobs: | |
deploy: | |
name: Deploy AWS Resources | |
runs-on: ubuntu-latest | |
environment: | |
name: Production | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Node and Caching | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: '.nvmrc' | |
cache: "npm" | |
cache-dependency-path: | | |
infrastructure/package-lock.json | |
prototype/package-lock.json | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v3 | |
with: | |
aws-region: us-east-1 | |
role-to-assume: ${{ secrets.OIDC_GITHUB_ROLE_ARN }} | |
- name: Build React project | |
run: | | |
npm ci | |
npm run build | |
working-directory: prototype | |
- name: Run deployment job | |
run: | | |
npm ci | |
npm run deploy-prod-frontend | |
working-directory: infrastructure |