fix: don't initially return 0,0 as its a valid mouse position but is … #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Example to GitHub Pages | |
on: | |
push: | |
branches: | |
- main # or master | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
cache: 'npm' | |
- name: Install dependencies | |
# Install dependencies in both root and examples directory | |
run: | | |
npm ci | |
cd example | |
npm ci | |
- name: Build | |
# Build the example app | |
run: | | |
cd example | |
npm run build | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@v4 | |
with: | |
folder: example/dist # Changed to example/build | |
branch: gh-pages |