Skip to content

chore: migrate eslint config #70

chore: migrate eslint config

chore: migrate eslint config #70

name: lint, build and deploy
on:
push:
branches: ['main']
workflow_dispatch:
jobs:
release:
environment: github-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm install
- run: npm run lint
- run: npm run build
env:
MAPBOX_TOKEN: ${{secrets.MAPBOX_TOKEN}}
- name: deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./dist