Skip to content

docs(gitbook): add Webpack configuration for Next.js #1351

docs(gitbook): add Webpack configuration for Next.js

docs(gitbook): add Webpack configuration for Next.js #1351

Workflow file for this run

name: CI
on:
pull_request:
branches:
- 'main'
push:
branches:
- 'main'
jobs:
run-ci:
name: Build, Lint, Typecheck, and Test
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9.12.2
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Prettier
run: pnpm prettier
- name: Typecheck
run: pnpm typecheck
- name: Run tests
run: pnpm test