Skip to content

ci: add preview pages as part of pull action #3

ci: add preview pages as part of pull action

ci: add preview pages as part of pull action #3

Workflow file for this run

# .github/workflows/preview.yml
name: Deploy PR previews
concurrency: preview-${{ github.ref }}
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- name: Cached LFS checkout
uses: nschloe/action-cached-lfs-checkout@v1.1.2
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: npm
- name: Install and Build
run: |
npm clean-install
npm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: ./build/