Skip to content

Feature updates based on User Feedback (#993) #72

Feature updates based on User Feedback (#993)

Feature updates based on User Feedback (#993) #72

Workflow file for this run

name: Node CI & Pages Deploy
on:
push: # run on pushes to any branch
pull_request: # run on PRs targeting any branch
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
test:
runs-on: ubuntu-latest
env:
NODE_ENV: test
VITE_PUBLIC_MAPBOX_TOKEN: ${{ secrets.VITE_PUBLIC_MAPBOX_TOKEN }}
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install packages
run: npm ci -f
- name: Run tests
run: npm test
build_and_deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main' # only deploy when running on main
permissions:
contents: read
pages: write
id-token: write
env:
VITE_PUBLIC_MAPBOX_TOKEN: ${{ secrets.VITE_PUBLIC_MAPBOX_TOKEN }}
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
- name: Install packages
run: npm ci -f
- name: Build
run: npm run build
- name: Configure Pages
uses: actions/configure-pages@v5
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./dist
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
with:
path: ./dist