Switch root package manager to pnpm 10

Co-authored-by: Steven <styfle@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-05-21 21:19:56 +00:00
parent 914a33426a
commit d2e5eb6186
4 changed files with 2807 additions and 2277 deletions

View File

@@ -10,21 +10,24 @@ jobs:
access_token: ${{ github.token }}
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v3
- name: Set node version
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
cache: 'pnpm'
node-version: '20'
- name: Cache node_modules
id: node-modules-cache
- name: Enable pnpm
run: corepack enable pnpm && corepack install
- name: Get pnpm store directory
id: pnpm-store
shell: bash
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_OUTPUT"
- name: Cache pnpm store
uses: actions/cache@v4
with:
path: '**/node_modules'
key: node-modules-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
path: ${{ steps.pnpm-store.outputs.STORE_PATH }}
key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
pnpm-store-${{ runner.os }}-
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: pnpm install
run: pnpm install --frozen-lockfile
- name: Run tests
run: pnpm test