Skip to content

fix: add type="module" to bundle.js and add viewMode trigger to grid … #28

fix: add type="module" to bundle.js and add viewMode trigger to grid …

fix: add type="module" to bundle.js and add viewMode trigger to grid … #28

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build:node
- name: Copy index.html to dist and fix paths
run: |
cp index.html dist/
sed -i 's|dist/bundle|./bundle|g' dist/index.html
cp -r src/icons dist/
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4