Update docs form validation example to demonstrate best-practise when submitting a form in an invalid state #1383
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
name: Deploy | |
on: | |
pull_request_target: | |
permissions: | |
checks: write | |
contents: read | |
deployments: write | |
pages: write | |
id-token: write | |
jobs: | |
deploy: | |
if: ${{ github.repository != github.event.pull_request.head.repo.full_name }} | |
name: Preview | |
# SHA for security hardening. Points at last verified HEAD of main branch. | |
uses: primer/.github/.github/workflows/deploy_preview.yml@cd223835608ca5e9401e0ffe6081f6d2fcc912f3 | |
with: | |
node_version: 18 | |
install: npm ci --legacy-peer-deps && cd apps/docs && npm ci --legacy-peer-deps && cd .. | |
build: npm run build && npm run build:docs && npm run build:storybook | |
output_dir: apps/docs/public/ |