Skip to content

#task Add a page of recommended assets to the top “ASSETS” menu. #52

#task Add a page of recommended assets to the top “ASSETS” menu.

#task Add a page of recommended assets to the top “ASSETS” menu. #52

name: Node.js CI
permissions:
contents: write
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Install dependencies
run: npm ci --legacy-peer-deps
- name: Run lint
run: npm run lint
- name: Build
run: |
npm run build
mkdir -p out
touch out/.nojekyll
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main' || github.event_name == 'pull_request' && github.event.pull_request.merged == true
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: out