Skip to content

Resolved merge conflicts #23

Resolved merge conflicts

Resolved merge conflicts #23

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build
# Deploy to GitHub Pages after successful build
- name: Deploy to GitHub Pages
if: ${{ github.ref == 'refs/heads/main' }} # Only deploy from main branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.apitoken }}
publish_dir: ./dist # Vite builds the app into 'dist'