Skip to content

Commit

Permalink
chore: Update examples build path in static.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
himanshurajora committed Jul 14, 2024
1 parent 0dc4d7d commit b429e13
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches:
- 'main'
paths:
- 'docs/**'
- 'examples/**'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions examples/drawing/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
</head>
<body>
<div id="app">
<h1>Welcome To Mini Points</h1>
<h2>We got examples for you</h2>
<h1>Welcome To MiniPoint</h1>
<h2>We've got examples for you</h2>
</div>
<ul>
<li><a href="/point/">Point</a></li>
Expand Down
13 changes: 7 additions & 6 deletions examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

/* Linting */
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
// "noUnusedLocals": true,
// "noUnusedParameters": true,
// "noFallthroughCasesInSwitch": true,
"paths": {
"@lib/*": ["../lib/*"]
}
Expand Down

0 comments on commit b429e13

Please sign in to comment.