Skip to content

docs: fix outdated setup guidance (#1481) #876

docs: fix outdated setup guidance (#1481)

docs: fix outdated setup guidance (#1481) #876

Workflow file for this run

name: Node.js CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
node-version: [22.x, 24.x]
include:
- os: windows-latest
node-version: 22.x
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
- uses: pnpm/action-setup@a3252b78c470c02df07e9d59298aecedc3ccdd6d # v3
with:
version: 9
run_install: false
- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup pnpm cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('./pnpm-lock.yaml') }}
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: ${{ matrix.node-version }}
- name: Install and prepare
run: pnpm install --frozen-lockfile --strict-peer-dependencies
- name: ESLint
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x'
run: pnpm lint
- name: TSLint
if: matrix.os == 'ubuntu-latest' && matrix.node-version == '22.x'
run: pnpm turbo run test:dts
- name: Tests
run: pnpm turbo run test