Skip to content

Refactor: Migrate from single-file HTML to modular TypeScript + Vite #8

Refactor: Migrate from single-file HTML to modular TypeScript + Vite

Refactor: Migrate from single-file HTML to modular TypeScript + Vite #8

Workflow file for this run

name: Deploy PR preview
on:
pull_request:
types:
- opened
- reopened
- synchronize
- closed
concurrency: preview-${{ github.ref }}
jobs:
deploy-preview:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Set up Node
if: github.event.action != 'closed'
uses: actions/setup-node@v7
with:
node-version: 20
cache: npm
- name: Install dependencies
if: github.event.action != 'closed'
run: npm ci
- name: Build
if: github.event.action != 'closed'
run: npm run build
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
with:
source-dir: dist
preview-branch: gh-pages