Skip to content

Switch to pnpm, update projects, and more #14

Switch to pnpm, update projects, and more

Switch to pnpm, update projects, and more #14

Workflow file for this run

name: Lighthouse CI
on:
pull_request:
branches: [main]
jobs:
lhci:
name: Lighthouse
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version: latest
cache: "pnpm"
- name: Install dependencies
run: pnpm install --prod --ignore-scripts
- name: Build site
run: pnpm run build
- name: Run Lighthouse CI
run: |
pnpm install -g @lhci/cli
lhci autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}