From b429e13a7a53308856b4f37842184cf0777b76ac Mon Sep 17 00:00:00 2001 From: Himanshu Jangid Date: Sun, 14 Jul 2024 22:03:30 +0530 Subject: [PATCH] chore: Update examples build path in static.yml --- .github/workflows/static.yml | 6 +++--- examples/drawing/script.ts | 4 ++-- examples/index.html | 4 ++-- examples/package-lock.json | 13 +++++++------ examples/tsconfig.json | 6 +++--- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 582ca7e..fbe29d0 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -7,7 +7,7 @@ on: branches: - 'main' paths: - - 'docs/**' + - 'examples/**' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -39,14 +39,14 @@ jobs: with: node-version: 18 - run: npm install && cd docs && npm install - - run: cd docs && npm run build + - run: cd examples && npm run build - name: Setup Pages uses: actions/configure-pages@v4 - name: Upload artifact uses: actions/upload-pages-artifact@v3 with: # Upload the frontend digest - path: 'docs/build' + path: 'examples/dist' - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4 diff --git a/examples/drawing/script.ts b/examples/drawing/script.ts index cfddd23..1475f40 100644 --- a/examples/drawing/script.ts +++ b/examples/drawing/script.ts @@ -14,8 +14,8 @@ document.getElementById('max')?.addEventListener('change', (e) => { window.addEventListener('mousemove', (e: MouseEvent) => { if (!e.shiftKey) return; - while (renderer.objects.length > maxAmount) { - renderer.objects.shift(); + while ((renderer.objects.length as unknown as number) > maxAmount) { + (renderer.objects as any).shift(); } const p1 = new Point(); diff --git a/examples/index.html b/examples/index.html index b7313b3..42fd401 100644 --- a/examples/index.html +++ b/examples/index.html @@ -12,8 +12,8 @@
-

Welcome To Mini Points

-

We got examples for you

+

Welcome To MiniPoint

+

We've got examples for you