### Changes: - **README.md**: Added a "Live Demo" section with a direct link to the interactive GitHub Pages demo. - **deploy-demo.yml**: Modified dependency installation step to use `npm install --legacy-peer-deps` for compatibility. ### Purpose: Improved documentation by providing direct access to the live demo for better user engagement. Updated the deploy workflow to ensure successful dependency resolution during the setup process.
34 lines
716 B
YAML
34 lines
716 B
YAML
name: Deploy Demo to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-and-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout 🛎️
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Setup Node.js 🔧
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '23'
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies 📦
|
|
run: npm install --legacy-peer-deps
|
|
|
|
|
|
- name: Build project 🏗️
|
|
run: |
|
|
npm run build
|
|
npm run build:browser
|
|
|
|
- name: Deploy to GitHub Pages 🚀
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
with:
|
|
folder: examples
|
|
branch: gh-pages
|