Skip to content

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

ci: add preview pages as part of pull action

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

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@d481127c3821f9c278a6019c39a108ac7004c133
- uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
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@183082fd714654433c8e2f6daedbfb4f20f2a94a
with:
source-dir: ./build/