Skip to content

fix: enable GitHub Pages in deploy workflow and add typecheck to pre-… #2

fix: enable GitHub Pages in deploy workflow and add typecheck to pre-…

fix: enable GitHub Pages in deploy workflow and add typecheck to pre-… #2

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
permissions:
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- name: Build
run: npm run build
- uses: actions/configure-pages@v5
with:
enablement: true
- uses: actions/upload-pages-artifact@v3
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4