Skip to content

Properly describe form validation errors #299

Properly describe form validation errors

Properly describe form validation errors #299

Workflow file for this run

name: 'Design System Website'
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened, closed]
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/setup-node@v4.0.2
with:
node-version: 20.x
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- uses: ./.github/workflows/actions/build-website
name: Build
deploy-website:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
needs: [ build ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.4
- uses: actions/setup-node@v4.0.2
with:
node-version: 20.x
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
- uses: ./.github/workflows/actions/deploy-website
name: Deploy Website
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AZURE_STATIC_WEB_APPS_TOKEN: ${{ secrets.AZURE_STATIC_WEB_APPS_TOKEN }}
close_pull_request_job:
if: github.event_name == 'pull_request' && github.event.action == 'closed'
runs-on: ubuntu-latest
name: Close Pull Request Job
steps:
- name: Close Pull Request
id: closepullrequest
uses: Azure/static-web-apps-deploy@v1
with:
azure_static_web_apps_api_token: ${{ secrets.AZURE_STATIC_WEB_APPS_TOKEN }}
action: "close"