Skip to content

feat: add onExport handler so hosts can save GeoJSON exports (#5) #5

feat: add onExport handler so hosts can save GeoJSON exports (#5)

feat: add onExport handler so hosts can save GeoJSON exports (#5) #5

Workflow file for this run

name: Deploy Examples 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@v6
with:
node-version: '24'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build library
run: npm run build
- name: Build examples for deployment
run: npm run build:examples
- name: Setup Pages
uses: actions/configure-pages@v6
with:
enablement: true
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: './dist-examples'
deploy:
environment: github-pages
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5